anywhere

导航

CentOS7 配置阿里云yum源

1.备份yum源

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

 

2.下载阿里的yum

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 on 2019-07-24 13:45  anywhere  阅读(317)  评论(0编辑  收藏  举报