使用说明
首先备份/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
标签:cache repo log 缓存 size backup class div 更换
使用说明
首先备份/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/(操作前请做好相应备份)
运行以下命令生成缓存
yum clean all yum makecache
标签:cache repo log 缓存 size backup class div 更换
原文地址:https://www.cnblogs.com/prometheus-python-xshell/p/7837736.html