Linux CentOS7 配置阿里云yum源

参考:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11jDTRbY

1.yum -y install wget

2.备份

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

 

3.下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

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

3. 运行 yum makecache 生成缓存

posted @ 2020-06-03 18:18  fengylf  阅读(480)  评论(0)    收藏  举报