CENTOS Yum Update source

Source: Internet
Author: User
Tags gpg

As we all know, CentOS has a handy software installation tool yum, but by default, CentOS is installed, and the system uses a foreign CentOS update source, which causes us to use the default update source to install or update the software when the slow problem.

In order to quickly install the update software using the Yum tool, we need to configure the default Yum update source as a domestic update source. The Yum update source configuration file is located under the CentOS directory/etc/yum.repos.d/.

First, provide several domestic fast update sources:

Education network resources:

1 Shanghai Jiaotong University: http://ftp.sjtu.edu.cn/centos/

The server is located in Beijing, China Education Network Network Center, download speed of up to 10 m.
North Users and Education network users recommend, fast.

You need to create the Centos-base.repo file manually.

2 China University of Science and Technology: http://centos.ustc.edu.cn

The server is located in Hefei. South users recommend. Similarly, the Cenos version is very rich and suitable for long-term use.

Non-educational network resources:

1 Sohu Open-source mirror server: http://mirrors.sohu.com/

The server is located in Shandong province Unicom

2 NetEase's Open source server image: Http://mirrors.163.com/centos
Speed is also good, the national user recommended

3 degrees, mother? How does not have the mother's open source image. Degree Niang every year defrauded so many hard-earned money, not even an open source can not afford it? Hundred Points despise!

In short, everyone in the use before you can ping a update source, to see which is fast to use which.

Centos-base.repo file example, this file is in this directory/etc/yum.repos.d/

[Base]

name=centos-$releasever-base

baseurl=http://mirrors.163.com/centos/6.4/os/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

[Updates]

name=centos-$releasever-updates

baseurl=http://mirrors.163.com/centos/6.4/updates/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

[Addons]

name=centos-$releasever-addons

baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

[Extras]

name=centos-$releasever-extras

baseurl=http://mirrors.163.com/centos/6.4/extras/$basearch/

Gpgcheck=1

Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

[Centosplus]

name=centos-$releasever-plus

baseurl=http://mirrors.163.com/centos/6.4/centosplus/$basearch/

Gpgcheck=1

Enabled=0

Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

As can be seen from the above configuration file, there are several items that need to be selected according to the individual source conditions [base] [updates] [addons] [extras] [Centosplus].

Each item can be modified as long as the BaseURL and Gpgkey are the corresponding source addresses.

After the above configuration is complete, to empty the Yum cache and rebuild the Yum cache, execute the following command:

Yum Clean all && yum clean metadata && yum clean dbcache && yum makecache && Yum Update

CENTOS Yum Update source

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.