红联Linux门户
Linux帮助

Centos7.x RHEL配置EPEL第三方YUM源

发布时间:2015-09-28 09:52:46来源:linux网站作者:braveheart4217

(经测试,此源可以安装yumex)


Epel介绍

具体请参见:http://fedoraproject.org/wiki/EPEL


如何安装 Epel源到 RHEL/CentOS 7/6/5?

通过wget命令下载RPM文件,然后安装。

RHEL/CentOS 7

# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh epel-release-7.noarch.rpm

RHEL/CentOS 6

## RHEL/CentOS 6
# wget

http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

# rpm -ivh epel-release-6.noarch.rpm


如何检查epel是否安装成功?

使用一下命令:

# yum repolist 

输出如下

[root@Lixiaolong ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* epel: ftp.sjtu.edu.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
repo id                        repo name                                                     status
base/7/x86_64                  CentOS-7 - Base                                               8,465
epel/x86_64                    Extra Packages for Enterprise Linux 7 - x86_64 5,036
extras/7/x86_64                CentOS-7 - Extras                                                30
updates/7/x86_64               CentOS-7 - Updates                                              423
repolist: 13,954
[root@Lixiaolong ~]#


如何使用epel源安装软件?

例如想查看cacti信息

# yum --enablerepo=epel info cacti 

Sample Output

Centos7.x RHEL配置EPEL第三方YUM源


安装则执行以下命令:

# yum --enablerepo=epel install cacti 

Note: Epel的配置文件在/etc/yum.repos.d/epel.repo.


RHEL/CentOS 5.x使用第三方软件库:http://www.linuxdiyf.com/linux/3744.html

在CentOS 5.X中使用第三方rpmfusion源仓库:http://www.linuxdiyf.com/linux/1939.html

Ubuntu Kylin 14.10升级到15.04出现第三方源被禁用的提示:http://www.linuxdiyf.com/linux/12084.html