CentOS default comes with the update source server abroad, at the time of domestic access, slower. To update and install the software faster, we recommend replacing the source of the update with the source of NetEase 163.
-
Enter the location of the repo
[[email Protected] ~]# cd/etc/yum.repos.d/
-
Download NetEase's repo
[[ Email protected] yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
-  
The original repo backup
[[email protected] yum.repos.d]# MV Centos-base.repo centos-base.repo.bak
- 4
Change NetEase's repo to the default source
[[email protected] yum.repos.d]# mv Centos6-base-163.repo Centos-base.repo
- 5
Generate cache
[[email protected] yum.repos.d]# Yum Clean all
[[[email protected] yum.repos.d]# yum makecache
- 6
Verifies that the update is correct
[[email protected] yum.repos.d]# yum repolist
appears as shown, Represents a successful replacement
CentOS 6.5 uses the source of NetEase 163 in China