CentOS更新yum源

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

1.下载repo文件

  1. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

2.备份并替换系统的repo文件

  1. [root@localhost ~]# cd /etc/yum.repos.d/
  2. [root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak
  3. [root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo

3.执行yum源更新

  1. [root@localhost ~]# yum clean all
  2. [root@localhost ~]# yum makecache
  3. [root@localhost ~]# yum update
原文地址:https://www.cnblogs.com/wliangde/p/3804359.html