centos配置163 源

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/(操做前請作好相應備份)

CentOS7緩存

wget http://mirrors.163.com/.help/CentOS7-Base-163.repo /etc/yum.repos.d

CentOS6code

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo /etc/yum.repos.d

CentOS5get

wget http://mirrors.163.com/.help/CentOS5-Base-163.repo /etc/yum.repos.d

3. 運行如下命令生成緩存

yum clean all
yum makecache
相關文章
相關標籤/搜索