当前位置:首页 > CentOS > 正文内容

CentOS7如何更换yum源

andy8个月前 (03-26)CentOS354

1.首先我们先对系统本身的yum源进行备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup


2.下载国内yum源配置文件到/etc/yum.repos.d/CentOS-Base.repo

阿里云 CentOS 7 源(推荐):

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


3.清理yum缓存,并生成新的缓存

yum clean all
yum makecache



扫描二维码推送至手机访问。

版权声明:本文由电脑帮发布,如需转载请注明出处。

本文链接:http://www.52dnb.com/?id=3

分享给朋友:
返回列表

没有更早的文章了...

下一篇:CentOS8如何更换yum源

“CentOS7如何更换yum源” 的相关文章

centos7安装gnome桌面

yum groupinstall "GNOME Desktop"systemctl set-default graphical.target...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。