以网易的163源为例
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
mv CentOS7-Base-163.repo CentOS-Base.repo
yum clean all
yum makecache
yum update
2020/03/04更新
阿里
https://developer.aliyun.com/mirror/
https://developer.aliyun.com/mirror/centos-altarch
参考:
https://blog.csdn.net/shengshengshiwo/article/details/84191515