Centos安装EPEL外部源

安装yum优先级插件

yum install yum-priorities

 

1.安装epelrpm

Rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

 

2.查看是否安装成功

rpm -q epel-release

 

3.导入key:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

 

4.修改/etc/yum.repos.d/epel.repo文件

在[epel]最后添加一条属性 priority=11vi /etc/yum.repos.d/epel.repo

 

5.重建缓存

yum makecache

posted on 2020-01-13 10:31  Helianthus720  阅读(207)  评论(0编辑  收藏  举报

导航