> CentOS > CentOS教程 >

(原创)RHEL/CentOS 7.x使用EPEL第三方yum源

PS:EPEL的yum源是很稳定的第三方yum安装源,也是我经常使用的,基于CentOS/RHEL7.x的也有了,整理如下: 


# wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
# yum install epel-release-7-0.2.noarch.rpm
或者
# rpm -ivh epel-release-7-0.2.noarch.rpm

验证查看是否安装成功:

yum repolist

查看某个包的详细信息:

yum --enablerepo=epel info htop


 

列出epel源的所有包列表:

yum --disablerepo="*" --enablerepo="epel" list available | less

附: 1、RHEL/CentOS 6.x的EPEL源安装方法: 

## RHEL/CentOS 6 32-Bit ##


# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

## RHEL/CentOS 6 64-Bit ##


# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

2、RHEL/CentOS 5.x的EPEL源安装方法:

## RHEL/CentOS 5 32-Bit ##


# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

## RHEL/CentOS 5 64-Bit ##


# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

(责任编辑:IT)