Change centosyum source

Source: Internet
Author: User
In centos, you can use yum to conveniently and quickly install the required software and libraries. if The yum source is not good, the installation speed will be very slow. by default, centos official sources appear to be outside China, so the speed is not guaranteed. I have been using 163 of the source, and I feel that the speed is good. The following describes how to modify the yum source. 1. enter the folder cd/etc/yum. repos. d2 that stores the source configuration, back up the default source mv./CentOS-Base.repo./CentOS-Base.repo.

In centos, you can use yum to conveniently and quickly install the required software and libraries. if The yum source is not good, the installation speed will be very slow. by default, centos official sources appear to be outside China, so the speed is not guaranteed. I have been using 163 of the source, and I feel that the speed is good. The following describes how to modify the yum source.

1. enter the folder cd/etc/yum. repos. d2 that stores the source configuration, back up the default source mv./CentOS-Base.repo./CentOS-Base.repo.bak3, use wget to download the 163 source wget CentOS-Base-163.repo CentOS-Base.repo

After the above operations, the default source is changed to 163. Of course, the steps 3 and 4 can be merged as follows:

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


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.