使用说明
首先备份/etc/yum.repos.d/CentOS-Base.repo
1 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本的repo文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
- CentOS7
- CentOS6
- CentOS5
运行以下命令生成缓存
yum clean all yum makecache
原文地址:https://www.cnblogs.com/prometheus-python-xshell/p/7837736.html
时间: 2024-11-08 23:34:46