0. install the yum priority plug-in yuminstallyum-priorities1.epel introduction: https://fedoraproject.org/wiki/EPEL/zh-cnrpm-Uvhhttp://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
0. install the yum priority plug-in
yum install yum-priorities
1. epel introduction: https://fedoraproject.org/wiki/EPEL/zh-cn
rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Modify the above URL according to the actual situation.
2. check whether the installation is successful.
rpm -q epel-release
3. import key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
4. modify the/etc/yum. repos. d/epel. repo file.
Add a property priority = 11 at the end of [epel ].
vi /etc/yum.repos.d/epel.repo
It means that yum first goes to the official site for source check, and the official site does not go to the epel site for source check.
5. rebuild cache
yum makecache