Change yum's target server to a mainland China server Image

Source: Internet
Author: User
Tags gpg
Modify/etc/yum. repos. d/CentOS-Base.repo to change the image site address to the image site address in China. Otherwise, the software installation speed will be slow through yum. I have verified that all the following URLs can be downloaded at the moment, and the speed is quite fast. Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.bakvi/etc/yum. re

Modify/etc/yum. repos. d/CentOS-Base.repo to change the image site address to the image site address in China. Otherwise, the software installation speed will be slow through yum.

I have verified that all the following URLs can be downloaded at the moment, and the speed is quite fast.

Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.bak
Vi/etc/yum. repos. d/CentOS-Base.repo

View plaincopy to clipboardprint?
# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and
# Update status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for CentOS updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
Name = CentOS-$ releasever-Base
Baseurl = http://developer.be10.com/centos/?releasever/ OS /?basearch/
Http://ftp.iasi.roedu.net/mirrors/centos.org/#releasever/ OS /?basearch/
Http://ftp.ncnu.edu.tw/linux/centos/?releasever/ OS /?basearch/
Http://ftp.hostrino.com/pub/centos/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
# Released updates
[Update]
Name = CentOS-$ releasever-Updates
Baseurl = http://developer.be10.com/centos/?releasever/ OS /?basearch/
Http://ftp.iasi.roedu.net/mirrors/centos.org/#releasever/ OS /?basearch/
Http://ftp.ncnu.edu.tw/linux/centos/?releasever/ OS /?basearch/
Http://ftp.hostrino.com/pub/centos/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
# Packages used/produced in the build but not released
[Addons]
Name = CentOS-$ releasever-Addons
Baseurl = http://developer.be10.com/centos/?releasever/ OS /?basearch/
Http://ftp.iasi.roedu.net/mirrors/centos.org/#releasever/ OS /?basearch/
Http://ftp.ncnu.edu.tw/linux/centos/?releasever/ OS /?basearch/
Http://ftp.hostrino.com/pub/centos/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras
Baseurl = http://developer.be10.com/centos/?releasever/ OS /?basearch/
Http://ftp.iasi.roedu.net/mirrors/centos.org/#releasever/ OS /?basearch/
Http://ftp.ncnu.edu.tw/linux/centos/?releasever/ OS /?basearch/
Http://ftp.hostrino.com/pub/centos/
Gpgcheck = 1
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = CentOS-$ releasever-Plus
Baseurl = http://developer.centos.org/centos/?releasever/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
# Contrib-packages by Centos Users
[Contrib]
Name = CentOS-$ releasever-Contrib
Baseurl = http://developer.centos.org/centos/?releasever/contrib/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

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.