1.安装wget
yum install -y wget
2.备份原镜像
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.back
3.下载阿里云镜像
cd /etc/yum.repos.d
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4.清理yum缓存
yum clean all
5.生成yum缓存
yum makecache
6.更新yum
yum update -y
标签:repos,repo,etc,Base,yum,镜像,ceotos7
From: https://www.cnblogs.com/itsfei/p/16952478.html