0. Open source mirroring
NetEase Open Source Mirror Mirror
NetEase open source mirroring help: http://mirrors.163.com/.help
Alibaba Cloud Open Source Image
https://mirrors.aliyun.com/repo/
1. Backup
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
或者
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2. Download CentOS-Base.repo to /etc/yum.repos.d/
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
3. Generate cache
yum clean all
yum makecache
4. Update the system
It may take a long time to update the system depending on the server network speed
yum -y update