CenOS更换为阿里云的源
按照步骤:
确保更换之前自己安装wget,若是没安装wget直接安装即可
yum list wget
yum -y install wget
首先备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
备份是不会有反应的
下载阿里云的yum源到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清除缓存
yum clean all