https://linux.cn/article-2324-1.html
在CentOS 上安装EPEL
1. 确认你的CentOS 的版本
首先通过以下命令确认你的CentOS 版本
$ cat /etc/redhat-release CentOS release 6.4 (Final)
2. 下载EPEL 的rpm 安装包
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3. 安装EPEL
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
4. 检查EPEL 源
安装好EPEL 源后,用yum 命令来检查是否添加到源列表
# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.vonline.vn * epel: buaya.klas.or.id * extras: centos-hn.viettelidc.com.vn * updates: mirrors.fibo.vn repo id repo name status base CentOS-6 - Base 6,381 epel Extra Packages for Enterprise Linux 6 - x86_64 10,023 extras CentOS-6 - Extras 13 nginx nginx repo 47 updates CentOS-6 - Updates 1,555 repolist: 18,019EPEL已经在repo 后列出,并且显示提供了上万个软件包,所以EPEL 已经安装到你的CentOS了