How to Install iftop on CentOS 7.6
Installation of iftop CentOS 7.6
Requirements:
libcap libcap-devel ncurses and ncurses-devel
Installation Process
Download the libraries and its development tools that are required to install iftop.
[root@linuxhelp ~]# yum -y install libpcap libpcap-devel ncurses ncurses-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* epel: epel.scopesky.iq
* extras: mirrors.viethosting.com
* remi-php72: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
Package 14:libpcap-1.5.3-11.el7.x86_64 already installed and latest version
Package ncurses-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libpcap-devel.x86_64 14:1.5.3-11.el7 will be installed
---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================
Package Arch Version Repository Size
==================================================================================
Installing:
libpcap-devel x86_64 14:1.5.3-11.el7 base 118 k
ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k
Transaction Summary
==================================================================================
Install 2 Packages
Total download size: 830 k
Installed size: 2.3 M
Downloading packages:
(1/2): libpcap-devel-1.5.3-11.el7.x86_64.rpm | 118 kB 00:00:01
(2/2): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:01
----------------------------------------------------------------------------------
Total 418 kB/s | 830 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 14:libpcap-devel-1.5.3-11.el7.x86_64 1/2
Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 2/2
Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 1/2
Verifying : 14:libpcap-devel-1.5.3-11.el7.x86_64 2/2
Installed:
libpcap-devel.x86_64 14:1.5.3-11.el7
ncurses-devel.x86_64 0:5.9-14.20130511.el7_4
Complete!
And then, install iftop using yum command as follows.
[root@linuxhelp ~]# yum install iftop -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirrors.estointernet.in
* epel: epel.scopesky.iq
* extras: mirrors.viethosting.com
* remi-php72: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: centos.mirrors.estointernet.in
Resolving Dependencies
--> Running transaction check
---> Package iftop.x86_64 0:1.0-0.14.pre4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================
Package Arch Version Repository Size
==================================================================================
Installing:
iftop x86_64 1.0-0.14.pre4.el7 epel 52 k
Transaction Summary
==================================================================================
Install 1 Package
Total download size: 52 k
Installed size: 93 k
Downloading packages:
iftop-1.0-0.14.pre4.el7.x86_64.rpm | 52 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : iftop-1.0-0.14.pre4.el7.x86_64 1/1
Verifying : iftop-1.0-0.14.pre4.el7.x86_64 1/1
Installed:
iftop.x86_64 0:1.0-0.14.pre4.el7
Complete!
Run the interface top command to view the network bandwith activities on your terminal.
[root@linuxhelp ~]# iftop
interface: ens33
IP address is: 192.168.7.229
MAC address is: 00:0c:29:f9:d6:3d
With this, the installation of iftop on CentOS 7.6 comes to an end.
Q
What is the stable release of iftop for Centos 7.6?
A
0.17 is the stable release of iftop for CentOS 7.6
Q
What does -F option used for in iftop on centos 7.6?
A
-F makes iftop to show the packets entering and leaving a given network On centos 7.6
Q
Who can run the iftop on CentOS 7.6?
A
iftop must be run by a root user or the user who has sufficient privileges to monitor network bandwidths.
Q
Is it possible for a normal user to run the iftop on CentOS 7.6?
A
No, it is not possible for a normal user to run the iftop on CentOS 7.6
Q
What is iftop used for In CentOS 7.6?
A
iftop is used to view the current bandwidth on a network interface On CentOS 7.6