CentOS 6.x 更換yum 163源

首先備份/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/(操做前請作好相應備份)
CentOS6
http://mirrors.163.com/.help/CentOS6-Base-163.repo
運行yum makecache生成緩存
相關文章
相關標籤/搜索