CentOS replace 163 of yum sources in one minute

Source: Internet
Author: User

CentOS replace 163 of yum sources in one minute

It is estimated that the local source is too good. 163 of the source is still quite complete, and the speed is also very fast.

Update 163 source so easy!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~

1. Download the repo file:

The Code is as follows:

Wgethttp: // mirrors.163.com/.help/CentOS6-Base-163.repo

// According to your own needs. I use centos 6.5.

2. Back up and replace the system's repo File

The Code is as follows:

[Root @ localhost ~] # Cd/etc/yum. repos. d/[root @ localhost ~] # MvCentOS-Base.repoCentOS-Base.repo.bak [root @ localhost ~] # MvCentOS6-Base-163.repoCentOS-Base.repo

3. Execute the yum source update

The Code is as follows:

[Root @ localhost ~] # Yumcleanall [root @ localhost ~] # Yummakecache [root @ localhost ~] # Yumupdate

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.