我是靠谱客的博主 现代白开水,这篇文章主要介绍CentOS 7 更换yum源,现在分享给大家,希望可以做个参考。

CentOS 7 阿里云源:

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

CentOS 7 网易源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo 

操作步骤:

cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all    
yum makecache

注意:

不要执行 yum update (会升级linux内核)

最后

以上就是现代白开水最近收集整理的关于CentOS 7 更换yum源的全部内容,更多相关CentOS内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(103)

评论列表共有 0 条评论

立即
投稿
返回
顶部