Centos7 updates Ali yum source

1. Download the repo file

wget http://mirrors.aliyun.com/repo/Centos-7.repo

2. Backup and replace the system repo file

cp Centos-7.repo /etc/yum.repos.d/ 

cd /etc/yum.repos.d/ 

mv CentOS-Base.repo CentOS-Base.repo.bak 

mv Centos-7.repo CentOS-Base.repo (区分大小写)

3. Perform the yum source update operation

yum clean all

yum makecache

yum update

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325031583&siteId=291194637