阿里云centos 6的 yum源配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaobao5214/article/details/83589786
#首先备份原来的cent os官方yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

#获取阿里的yum源覆盖本地官方yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

#清理yum缓存,并生成新的缓存
yum clean all
yum makecache 

猜你喜欢

转载自blog.csdn.net/xiaobao5214/article/details/83589786