关于yum源地址的更换(日记)
备份原文件:
mkdir /home/base-repo
mv /etc/yum.repos.d/* /home/base-repo
安装新源:
#Centos163
curl -o /etc/yum.repos.d/Centos-163base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum makecache #安装缓存
#Centos aliyun
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo