Change CentOS 6.x Yum Source to domestic 163 source

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.