8

I tried:

root@host [/home]# yum install iftop
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.tds.net
 * extras: yum.singlehop.com
 * updates: mirror.wiredtree.com
Setting up Install Process
No package iftop available.
Error: Nothing to do

So how to do it?

What should I do to be able to do so?

4 Answers 4

15

iftop available in EPEL repository:

# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2
  • I did that. Now how to run iftop? I run it and nothing shows up
    – user4951
    Commented Jul 11, 2014 at 4:36
  • after adding repository run this: yum install iftop
    – manuel
    Commented Mar 13, 2015 at 14:23
8

You can either download the source code and compile the package yourself, or you can downloaded the binary package for your distribution.

Have a look at http://pkgs.repoforge.org/iftop/ as it provides binary packages for RHEL/CentOS and the source.

To install the binary package on CentOS-6 64-bit just do the following:

wget http://pkgs.repoforge.org/iftop/iftop-0.17-1.el6.rf.x86_64.rpm
rpm -ivh iftop-0.17-1.el6.rf.x86_64.rpm
4
  • 1
    rpm can accept a http or ftp link as the package name. No need to wget. Also, it's best to stick to atleast semi-official repositories like EPEL when possible.
    – jordanm
    Commented Jan 10, 2013 at 20:19
  • +1 for both. Can anyone tell me why the 2 answers are different?
    – user4951
    Commented Jan 11, 2013 at 1:49
  • I shorten your instruction to: rpm -ivh pkgs.repoforge.org/iftop/iftop-0.17-1.el6.rf.x86_64.rpm
    – user4951
    Commented Jan 11, 2013 at 3:14
  • This repo is not maintained anymore and strongly not recommended to use. Use epel instead! Find more information on additional rhel / centos/ oel repos here: wiki.centos.org/PatrickDGarvey/AdditionalResources/Repositories
    – aim
    Commented Nov 27, 2015 at 23:59
4

For CentOS 7 (fully updated today), install from EPEL repository

yum install epel-release -y
yum install iftop -y

Not 100% sure, but I think earlier versions require downloading the EPEL repository and installing manually using rpm, then you can just "yum install iftop" (as per other answers)

1
  • Yes it works for me!
    – newguy
    Commented Aug 24, 2017 at 16:19
1

For Centos 7 you can do this:

rpm -i http://mirror.pnl.gov/epel/7/x86_64/i/iftop-1.0-0.7.pre4.el7.x86_64.rpm
1
  • 1
    sudo yum install libpcap && rpm -i https://dl.fedoraproject.org/pub/epel/7/x86_64/i/iftop-1.0-0.12.pre4.el7.x86_64.rpm worked for me - also you posted a mirror
    – Jose Alban
    Commented Feb 8, 2017 at 11:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .