1 备份下原来的yum源
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo_bak
2 获取阿里云yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3 清除缓存
yum clean all
4 生成缓存
yum makecache
---------------------
作者:清晨一场梦
来源:CSDN
原文:https://blog.csdn.net/zyddj123/article/details/81076530
版权声明:本文为博主原创文章,转载请附上博文链接!
原文:https://www.cnblogs.com/sidesky/p/10646215.html