更改CentOS7的yum更新源

1. 备份现有源:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2.下载163源

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

 

3.清理并生成缓存

yum clean all
yum makecache

 

posted @ 2015-07-30 03:28  独自上路  阅读(2259)  评论(2编辑  收藏  举报