CentOS 7 update source-use 163 yum source in China

Source: Internet
Author: User

CentOS 7 update source-use 163 yum source in China

Suddenly think of Docker, installed CentOS 7 on a computer, ready to start, suddenly think of another thing, change the source, or the installation will be very slow, search online, there are many articles, but there may be some problems, so write down your success logs and share them with you. The steps for searching articles are the same, but the network cannot be connected when the command is run. It may be that the source of the original article has been removed and updated. For the 163 source I use, follow these steps:

Open 163 source site: http://mirrors.163.com/.help/centos.html directly

Follow the instructions to back up the source (use the following command to rename the original source. If there is an error, change it back ):

Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup

Go to the source directory:

Cd/etc/yum. repos. d/

Download the source from your own version. For CentOS 7, run the following command:

Wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

Run the following command to generate the cache:

Yum clean all

Yum makecache

That's easy. continue to enjoy CentOS 7 !!!!!

For more YUM tutorials, see the following:

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Build yum local source on CentOS 6.4

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.