标签:操作 cache base cin code ack repo tab ons
1.备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum .repos.d /CentOS-Base .repo /etc/yum .repos.d /CentOS-Base .repo.backup |
2.下载repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
mv CentOS7-Base-163.repo /etc/yum.repos.d/
3.运行以下命令生成缓存
yum clean all
yum makecache
标签:操作 cache base cin code ack repo tab ons
原文地址:http://www.cnblogs.com/carlo-jie/p/6106507.html