1.下载163(网易)的repo文件
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
2.备份并替换系统的repo文件
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo
3.执行yum源更新
[root@localhost yum.repos.d]# yum clean all #清空yum缓存
[root@localhost yum.repos.d]# yum makecache #重新创建yum缓存
[root@localhost yum.repos.d]# yum update #更新所有软件包