改变centos 源

在centos 一般使用yum 但是centos本身自带的yum有点慢,这时,需要使用国内源,我是使用网易源

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

2,备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下载163网易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3,更新玩yum源后,执行下边命令更新yum配置,使操作立即生效
yum makecache

posted @ 2016-07-09 15:01  逆流的致爷  阅读(101)  评论(0编辑  收藏  举报