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











