指引网

当前位置: 主页 > 操作系统 > CentOS >

CentOS 5.5 yum更新源(163、搜狐、中科大)

来源:网络 作者:佚名 点击: 时间:2017-08-31 01:18
[摘要] CentOS 5.5 yum更新源(163、搜狐、中科大)

源的更新方法如下:

先进入yum源配置目录
cd /etc/yum.repos.d

备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.save

下载其他更快的yum源
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo

163的yum源:
wget http://mirrors.163.com/.help/CentOS-Base-163.repo

sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

更新yum源后,建议使用makecache更新一下,使操作立即生效:
yum makecache

------分隔线----------------------------