centos配置163源

时间:2023-03-09 00:35:38
centos配置163源

1.参考Centos镜像帮助

(1.1)备份原始repo

shell> sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

(1.2)下载163 repo,放入 /etc/yum.repos.d/ ,并修改文件名称

shell > sudo cd /etc/yum.repos.d/
shell > sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
shell > sudo mv CentOS7-Base-.repo CentOS-Base.repo

ps: 相关repo地址

centos7 : http://mirrors.163.com/.help/CentOS7-Base-163.repo

centos6 : http://mirrors.163.com/.help/CentOS6-Base-163.repo

centos5 : http://mirrors.163.com/.help/CentOS5-Base-163.repo

(1.3)生成缓存

shell> sudo yum clean all
shell > sudo yum makecache

2. 相关链接

官方主页: http://www.centos.org/

邮件列表: http://www.centos.org/modules/tinycontent/index.php?id=16

论坛: http://www.centos.org/modules/newbb/

文档: http://www.centos.org/docs/

Wiki: http://wiki.centos.org/

镜像列表: http://www.centos.org/modules/tinycontent/index.php?id=32