安装第三方RPM仓库

1、安装EPEL源:

CentOS 6.x
[root@localhost /]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

CentOS 7.x

[root@localhost /]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

CentOS

[root@localhost /]# yum install epel-release
 
2、安装RepoForge源:
CentOS 6.x
[root@localhost /]# yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

 CentOS 7.x

[root@localhost /]# yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
 
3、安装ELRepo源:
Import the public key:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Install CentOS 6.x:

rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

Install CentOS 7.x:

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
 
4、安装Unx-Dextop源:
CentOS 6.x
[root@localhost /]# yum install http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

 CentOS 7.x

[root@localhost /]# yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

5、生成本地缓存:

[root@localhost /]# yum makecache

6、查询第三方源中文件列表:

[root@localhost /]# yum list | grep rpmforge | grep lshw
[root@localhost /]# yum list | grep epel | grep lshw

7、安装软件:

[root@localhost /]# yum -y install iftop lshw

[THE END]

 
 
原文地址:https://www.cnblogs.com/configure/p/6202811.html