Modify CentOS yum source to 163

Source: Internet
Author: User

Modify the CentOS yum source to 163 backup/etc/yum. repos. d/CentOS-Base.repo www.2cto.com Modify/etc/yum. repos. d/CentOS-Base.repo [plain] # CentOS-Base.repo # The mirror system uses the connecting IP address of the client and the # 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 mirror S. # If the specified list = does not work for you, as a fall back you can try the # remarked out baseurl = line instead. # [base] name = CentOS-$ releasever-Base-163.com baseurl = http://mirrors.163.com/centos/?releasever/ OS /?basearch/ # #list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = OS gpgcheck = 1 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 # released updates [updates] name = CentOS-$ releasever-Updates-163.com baseurl = signature # Your list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updates gpgcheck = 1 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 # additional packages that may be useful [extras] name = CentOS-$ releasever-Extras-163.com baseurl = http://mirrors.163.com/centos/?releasever/extras/?basearch/ # #list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = extras gpgcheck = 1 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 # extends packages that extend functionality of existing packages [centosplus] name = CentOS-$ releasever-Plus- 163.com baseurl = http://mirrors.163.com/centos/?releasever/centosplus/?basearch/ # #list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplus gpgcheck = 1 enabled = 0 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 # contrib-packages by Centos Users [contrib] name = CentOS-$ releasever-Contrib -163.com baseurl = http://mirrors.163.com/centos/?releasever/contrib/?basearch/ # #list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contrib gpgcheck = 1 enabled = 0 gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

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.