CentOS 7 更换阿里云更新源

简单粗暴,root身份运行,直接复制粘贴到终端

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo 
yum clean all  
yum makecache

本文链接:https://hlynford.com/326.html
如未声明,均为作者Hlynford原创,转载请注明出处,谢谢
THE END
分享
二维码
< <上一篇
下一篇>>