1 備份下原來的yum源緩存
cd /etc/yum.repos.d/阿里雲
mv CentOS-Base.repo CentOS-Base.repo_bak
1
2
3
2 獲取阿里雲yum源get
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
1
3 清除緩存yum
yum clean all
1
4 生成緩存make
yum makecache備份