CentOS system with the speed of the updated source is really slow, you must feel that the domestic speed is unbearable. In order to let CentOS6 use faster yum update source, generally do operational maintenance of the principle of replacement source, I can generally choose 163 (netease) Update source.
Centos 6.4 Method of replacing Yum source of NetEase 163
1. Download Repo file
The code is as follows |
Copy Code |
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo |
2, backup and replace the system's repo files
The code is as follows |
Copy Code |
[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, the implementation of Yum source update
code is as follows |
copy code |
[root@localhost ~]# Yum Clean all [root@localhost ~]# yum makecache [root@localhost ~]# yum update |