修改yum源为阿里
-
备份本地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-6.repo
3.更新 cache
yum clean all
yum makecache
4.查看并更新 yum 源
yum -y update