Installing iftop - Centos 5.2

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:

  1. cd /usr/local/
  2. wget http://checksuite.sourceforge.net/dl/iftop-0.16-0.i386.rpm

Then I tried to install it:

  1. 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:

  1. yum search libpcap

Bingo, found libpcap.i386. So I tell yum to install it for me.

  1. 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:

  1. /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.

  1. 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:

  1. rpm -ivh –nodeps iftop-0.16-0.i386.rpm

Try running iftop by typing this:

  1. iftop

Good Luck!

Share and Enjoy:
  • Print this article!
  • E-mail this story to a friend!
  • Google
  • Digg
  • Facebook
  • del.icio.us
  • Mixx
  • Live
  • NewsVine
  • Slashdot
  • Technorati
  • Ma.gnolia

Tags: , , , , ,

Leave a Reply