配置 yum 源为 aliyun
1) 备份yum源的配置目录
cd /etc/repos.d
mv yum.repos.d/ yum.repos.d.back
2 )新建一个空的yum源的配置目录
yum -y install make
mkdir /etc/yum.repos.d
3 )下载阿里云的配置到目录中
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
4 )清空缓存 yum clean all 重建缓存库 yum makecache
完成以上的步骤之后,就可以使用 aliyun yum源了。

浙公网安备 33010602011771号