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

猜你喜欢

转载自blog.csdn.net/byygyy/article/details/84038570