下载EPEL RPM安装包,目前最新的版本是epel-release-7-5.noarch.rpm,如果链接无效,可以在http://dl.fedoraproject.org/pub/epel/7/x86_64/e/找到对应的rpm包即可
下载
1 | wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm |
安装
1 | yum install epel-release-7-5.noarch.rpm |
查看是否安装成功
1 | yum repolist |
redhat配置centos源
1 | vim /etc/yum.repos.d/CentOS-Base.repo |
将一下内容复制到文件中
1 | [base] |
执行以下命令
1 | rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7 |
地址:http://wuchuiyou.com/2015/05/02/RHEL-7-%E9%85%8D%E7%BD%AECentOS%E6%BA%90/