RedHat Enterprise Linux 6.4 using CentOS6 's Yum source problem

Source: Internet
Author: User
Tags gpg

#yum Install Pam-devel

#This system is not registered to Red Hat Subscription Management. You can use the Subscription-manager to register.
Setting up Install Process
Nothing to do

After a morning study found that, in fact, if the use of Redhat Yum Source to pay for registration, time-consuming and laborious, only on their own computer to set up a redhat system, there is no need for this big trouble. Through degrees Niang found a lot of solutions, but many ways in my computer does not work, just know the vast number of users of the environment is not the same, so their approach does not necessarily conform to their own computer.

The following is the author combined with the relevant information on the Internet, for the same environment with my system solutions.

System: RedHat Enterprise Linux 6.4-x86_64 md5:467b53791903f9a0c477cbb1b24ffd1f This is:

The first step to download the relevant installation package

Can be downloaded through Http://, this is the author has downloaded the good Http://

Step two uninstall Redhat's own Yum

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

Step three install the downloaded installation package

#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-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

Fourth step to Http://'s CentOS help documentation
Download the Centos6-base-163.repo file in the/ETC/YUM.REPO.D

#wget Http://

The fifth step is to change the $releasever in Centos6-base-163.repo to the version number of CentOS.

To prevent errors, you can also use the files I have modified

The file can be modified as follows:

# 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 is updated to and

# Geographically close to the client. You should the use of this for CentOS updates

# Unless you is manually picking other mirrors.


# If The mirrorlist= does not work for you, as a fall back to you can try the

# remarked out Baseurl= line instead.





#mirrorlist = $basearch &repo=os



#released Updates



#mirrorlist = $basearch &repo=updates



#additional packages that could be useful



#mirrorlist = $basearch &repo=extras



#additional packages that extend functionality of existing packages



#mirrorlist = $basearch &repo=centosplus




#contrib-packages by Centos Users



#mirrorlist = $basearch &repo=contrib




Sixth step Yum Clean all clears the original cache

Seventh step Yum Makecache get yum list

Wait, after about three minutes, the following prompt appears, indicating that the Yum change is complete:

Metadata Cache Created

This article is from the "-it commune" blog, please be sure to keep this source

RedHat Enterprise Linux 6.4 using CentOS6 's Yum source problem

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: 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.