yum 更新源

1.  备份原来的源

   

2.  拉取

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

或者

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、更新镜像源
清除缓存:yum clean all
生成缓存:yum makecache

posted @ 2019-09-30 10:50  you_magic  阅读(3591)  评论(0编辑  收藏  举报