1. 备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2.获取阿里yum源配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.更新cache
yum makecache
4.查看
yum -y update
下面提供一些其他的镜像源:
阿里云开源镜像:http://mirrors.aliyun.com/
网易开源镜像:http://mirrors.163.com/
清华大学开源镜像:https://mirror.tuna.tsinghua.edu.cn/