Configuring the Yum source for CentOS 6.5

Source: Internet
Author: User
Tags gpg

Issue: Redhat 6.4 The default comes with a Yum source that needs to be registered before it can be updated.

Solution: Remove the default yum source and manually configure the Yum source for CentOS 6.5.

My system here is Redhat 6.4, so in http://mirrors.163.com/centos/6/os/x86_64/Packages/download the relevant RPM package


1. First look for the system to automatically install those Yum packages

# Rpm-qa | grep Yum

2. Delete the default installed Yum package without checking for dependencies

# Rpm-qa | grep Yum | Xargs rpm-e--nodeps

3. Check again to see if the deletion succeeded

# Rpm-qa | grep Yum

4. Download the new Yum package

# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm

# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

5. Install the Yum pack

# RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

# RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

# RPM-IVH yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

6. Configuration files that provide Yum sources

# cd/etc/yum.repos.d/

# wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

   # VI Centos6-base-163.repo

# 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 should use this for centos updates#  unless you are manually picking other mirrors.## If the  mirrorlist= does not work for you, as a fall back you  Can try the # remarked out baseurl= line instead.##[base]name= centos-6.5 - base - 163.combaseurl=http://mirrors.163.com/centos/6/os/$basearch/# Mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=osgpgcheck=1gpgkey=http:// Mirror.centos.org/centos/rpm-gpg-key-centos-6#released updates [updates]name=centos-6.5 - updates - 163.combaseurl=http:/ /mirrors.163.com/centos/6/updates/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release=6.5&arch=$ Basearch&repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional  packages that may be useful[extras]name=CentOS-6.5 - Extras -  163.combaseurl=http://mirrors.163.com/centos/6/extras/$basearch/#mirrorlist =http://mirrorlist.centos.org/? Release=6.5&arch= $basearch &repo=extrasgpgcheck=1gpgkey=http://mirror.centos.org/centos/ Rpm-gpg-key-centos-6#additional packages that extend functionality of existing  packages[centosplus]name=centos-6.5 - plus - 163.combaseurl=http://mirrors.163.com/ centos/6/centosplus/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release=6.5&arch= $basearch & Repo=centosplusgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#contrib - packages by centos users[ Contrib]name=centos-6.5 - contrib - 163.combaseurl=http://mirrors.163.com/centos/6/contrib /$basearch/#mirrorlist =http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=contribgpgcheck= 1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

PS: Edit the configuration file and replace all the $release in the file with the version number, which is 6.5 last saved.

7. Clear the original cache

# Yum Clean All

8. Rebuild the cache to increase the speed of the search installation software

# yum Makecache

9. Last Updated

# Yum Update




This article is from "Luo Chen's blog" blog, please be sure to keep this source http://luochen2015.blog.51cto.com/9772274/1705254

Configuring the Yum source for CentOS 6.5

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.