How to increase the download speed of the YUM Image address in CentOS

Source: Internet
Author: User
Tags centos


You can modify the image address in either of the following ways,

1. Install yum-fastestmirror to automatically select the fastest image to download
2. Change the image download address and select the image download address in China.

Note that after fastestmirror is installed, the modified image address may be invalid because the plug-in uses a dynamically selected image address.


Method 1

The code is as follows: Copy code

Yum install yum-plugin-fastestmirror

Method 2

The code is as follows: Copy code

Cd/etc/yum. repos. d
Mv CentOS-Base.repo CentOS-Base.repo.bak
Wget http://mirrors.163.com/.help/CentOS-Base-163.repo
Mv CentOS-Base-163.repo CentOS-Base.repo

The following images are recommended:

Public network
163 NetEase: http://mirrors.163.com/.help/CentOS-Base-163.repo
Sohu: http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
CERNET/public network
University of Science and Technology: http://centos.ustc.edu.cn/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.