在新装的centos里要通过yum install iftop nload会提示没有该软件包的错误,原来这些软件都没有包含在基本源里,通过安装EPEL(企业版 Linux 附加软件包)源就可以解决这个问题了。
yum install epel-release
CentOS/RHEL 5 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
CentOS/RHEL 6 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
CentOS/RHEL 7 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
通过上述命令,再执行yum install iftop nload 就不会报错了。