There are two ways to modify the Yum source, many friends like to modify YUM.REPOS.D this file to make changes, Deepvps feel this method is not too good, the following method is more convenient. In the CentOS system, you can install components directly through Yum, but the system default Yum source speed is often unsatisfactory, are connected overseas, in order to achieve rapid installation in the country, it is necessary to modify the Yum source, you can use http://mirrors.163.com/ Http://mirrors.sohu.com of these 2 domestic sources. 1. Go to the folder where the source configuration is stored cd/etc/yum.repos.d2, back up the default source mv./centos-base.repo./centos-base.repo.bak3, use wget to download 163 of the source http:/ mirrors.163.com/.help/centos.html wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo or wget/http MIRRORS.SOHU.COM/HELP/CENTOS-BASE-SOHU.REPO4, set the downloaded file Centos-base-163.repo to the default source MV Centos6-base-163.repo Centos-base.repo the default source to 163 by doing this. Of course, the third to fourth step above can be combined as follows: Wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo-O Centos-base.repo5, run Yum Makecache generate the cache and try Yum update to know.
Change CentOS 6.x Yum Source to domestic 163 source