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
  • email
  • Google Bookmarks
  • Digg
  • Facebook
  • del.icio.us
  • Mixx
  • Live
  • NewsVine
  • Slashdot
  • Technorati
  • Ma.gnolia

Tags: , , , , ,

2 Responses to “Installing iftop – Centos 5.2”

  1. Alessandro Says:
    January 3rd, 2011 at 3:28 pm

    Thanks a lot! But on my CentOS iftop don’t work!

  2. admin Says:
    January 3rd, 2011 at 9:39 pm

    I’m running 64 bit Centos Now.

    I just installed it using the following:
    cd /usr/local/src
    wget 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-devel
    make
    make install

    (works fine on my 64bit centos)

Leave a Reply