CentOS 7 配置阿里云yum源

Test at Red Hat Enterprise Linux Server release 7.5 (Maipo)

File localtion /etc/yum.repos.d/epel.repo

Refrer to https://www.jianshu.com/p/25a63cbf1e9d

Aliyum rep at http://mirrors.aliyun.com/epel/

#step 1 cd /etc/yum.repos.d/

#step 2 touch epel.repo

#step 3 vi epel.repo and copy all script to there

#step 4 yum clean all

#step 5 yum makecache

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/epel/7/$basearch
gpgcheck=0
gpgkey=http://mirrors.aliyun.com/epel/RPM-GPG-KEY-EPEL-7
如果您喜欢我,可以通过微信请我喝果汁。

如果有疑问,可以留言或者发邮件给我 lhh_nj@163.com
原文地址:https://www.cnblogs.com/lihuanhuan/p/10612134.html