1.首先备份原来的cent os官方yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2.获取阿里的yum源覆盖本地官方yum源
wget http://mirrors.aliyun.com/repo/Centos-7.repo
3.清理旧包
yum clean all
4.重新生成缓存
yum makecache
停用fastestmirror插件
vi /etc/yum/pluginconf.d/fastestmirror.conf
修改内容 enabled = 1//由1改为0
评论 (0)