配置 yum 源为 aliyun

1) 备份yum源的配置目录

mv yum.repos.d/ yum.repos.d.back

2 )新建一个空的yum源的配置目录 

mkdir /etc/yum.repos.d

3 )下载阿里云的配置到目录中 

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

4 )清空缓存  clean all  重建缓存库  makecache 

完成以上的步骤之后,就可以使用 aliyun yum源了。

猜你喜欢

转载自www.cnblogs.com/Orange1996/p/11116527.html