美文网首页
CentOS 换 yum 源

CentOS 换 yum 源

作者: 夜空最亮的9星 | 来源:发表于2021-06-12 07:43 被阅读0次

使用说明

原文链接

首先备份/etc/yum.repos.d/CentOS-Base.repo

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

下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)

运行以下命令生成缓存

yum clean all
yum makecache

相关文章

网友评论

      本文标题:CentOS 换 yum 源

      本文链接:https://www.haomeiwen.com/subject/tfvbeltx.html