CentOS 配置163的yum源更新笔记

时间:2015-01-29 17:56:12   收藏:0   阅读:217


CentOS系统自带的更新源的速度实在是慢,为了让CentOS6使用速度更快的YUM更新源,可以选择163(网易)的更新源。

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

备份并替换系统的repo文件

# mv CentOS-Base.repo CentOS-Base.repo.bak
# mv CentOS6-Base-163.repo CentOS-Base.repo

执行yum源更新

# yum clean all
# yum makecache
# yum update
评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!