Installing iftop – Centos 5.2
Posted by admin | Filed under Computing and IT, Pick and Mix
iftop isn’t available to be installed with yum. So we need to install it using rpm.
First thing we do is visit the official iftop website and download the rpm for redhat.
http://www.ex-parrot.com/~pdw/iftop/
If you scroll down, you’ll find the latest version. At the time of writing this I used the following command from my secure shell prompt:
-
cd /usr/local/
-
wget http://checksuite.sourceforge.net/dl/iftop-0.16-0.i386.rpm
Then I tried to install it:
-
rpm -i iftop iftop-0.16-0.i386.rpm
No luck, it requires a dependency called: libpcap. So I did a search using yum for it:
-
yum search libpcap
Bingo, found libpcap.i386. So I tell yum to install it for me.
-
yum install libpcap.i386
Turns out it’s already installed, so I tried the development library for good measure, no difference. Then I tried this command:
-
/sbin/ldconfig -p | grep "libpcap"
The file I need “libpcap.so.0.6.2″ is actually located here: /usr/lib/libpcap.so.0.9.4
As you can see, it’s the wrong version, so I’m going to create a link to it.
-
ln -s /usr/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.0.6.2
Still couldn’t install it via rpm -i….so time to try with no dependencies:
-
rpm -ivh –nodeps iftop-0.16-0.i386.rpm
Try running iftop by typing this:
-
iftop
Good Luck!
Tags: Add new tag, centos 5.2, command promp, Linux, network, traffic

January 3rd, 2011 at 3:28 pm
Thanks a lot! But on my CentOS iftop don’t work!
January 3rd, 2011 at 9:39 pm
I’m running 64 bit Centos Now.
I just installed it using the following:
cd /usr/local/srcwget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
yum install libpcap libcurses
tar xvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
(missing headers….)
yum install libpcap-develmake
make install
(works fine on my 64bit centos)