简单粗暴:
1.rm -f /etc/yum.repos.d/*
然后重新下载阿里的:
2.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理缓存:
3.yum clean all
然后就可以了
博客介绍了将CentOS的yum源替换为阿里源的简单方法。先删除原有yum源配置文件,再重新下载阿里的yum源配置文件,最后清理缓存即可完成替换。
简单粗暴:
1.rm -f /etc/yum.repos.d/*
然后重新下载阿里的:
2.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理缓存:
3.yum clean all
然后就可以了
3万+
4万+
6335

被折叠的 条评论
为什么被折叠?