Centos7更换阿里云yum源

备份centos

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

 

centos7url

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

get

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

 

添加EPELmake

 

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

 

 

 

yum clean all备份

yum makecachewget

 

参考资料co

http://mirrors.aliyun.com/help/centos

http://mirrors.aliyun.com/help/epel

相关文章
相关标签/搜索