How does centos update yum sources and centos update yum sources?

Source: Internet
Author: User

How does centos update yum sources and centos update yum sources?

In fact, these things should be clearly written as soon as they are completed. They have been written for a long time. Maybe they have not been written in some places. I hope to see the kids shoes for help and I will update them again, if any error occurs, please criticize and correct it.

Some children's shoes may now have VPNs, so there is no speed to download some programs or plug-ins, or there may be no software to download from some sources. So we can change the centos yum source to Alibaba or 163. Here we provide you with some addresses (the address may be slightly incorrect. You can go to http: // mirrors. *. com to find your own address, * representing major websites such as 163)

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

Alibaba: http://mirrors.aliyun.com/repo/Centos-7.repo

Sohu: http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

Below is the step for replacing the source:

1 // enter yum. repos. d Path 2 cd/etc/yum. repos. d3 // move the original source file elsewhere for backup 4 sudo mv CentOS-Base.repo CentOS-Base.repo.bk5 // download the source file (here change to 163 as an example) 6 sudo wget http://mirrors.163.com/.help/CentOS-Base-163.repo7 // Update Configuration 8 sudo yum makecacheView Code

Update completed is displayed after all updates are completed.

Reprinted please note
Author: Spring of Li xiao'er
Address: http://www.cnblogs.com/LittleTwoLee/p/5046088.html

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.