centos添加阿里官网yum源

1、备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

3、生成新的缓存

 yum makecache

 

posted @ 2022-02-13 16:32  闲着没事学学习  阅读(158)  评论(0)    收藏  举报