CentOS 7配置阿里云yum源

安装Base repo源

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

 

备份系统原来的repo文件

mv CentOs-Base.repo CentOs-Base.repo.bak

将下载的repo源,重命名

mv Centos-7.repo CentOs-Base.repo
清理缓存
yum clean all
重新生成缓存
yum makecache
升级yum源
yum uptade

 

posted @ 2021-02-15 13:09  君凌天  阅读(60)  评论(0)    收藏  举报