Method to configure 163 yum source

  • 2020-05-07 20:45:19
  • OfStack

Today, the CentOS system was installed, and the YUM source was updated too slowly, so the YUM source of 163 was used for the update. The specific replacement method is as follows:

1. Download repo:


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

2. Backup and replace the system's repo files


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

3. Perform yum source updates


[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache
[root@localhost ~]# yum update


Related articles: