RedHat Enterprise Linux 6.4 using the CentOS 6 yum source problem

Source: Internet
Author: User
Tags gpg

RedHat Enterprise Linux 6.4 Use Centos 6 of the Yum Source Issues

As a novice, learning Linux has been one months, during which encountered a lot of problems, and today I encountered the problem is

#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 need to register pay, time and effort, and I just a beginner, only on their own computer 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: http://pan.baidu.com/s/1bniVAMj

The first step to download the relevant installation package

Can be downloaded through Http://mirrors.163.com/centos, this is the author has downloaded the good Http://pan.baidu.com/s/1qW0MbgC

Step two uninstall Redhat's own Yum

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

Step three install the downloaded installation package

python-iniparse-0.3.1-2.1.el6.noarch.rpm

yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

yum-3.2.29-40.el6.centos.noarch.rpm

yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

These four packages are located under: http://mirrors.163.com/centos/6.6/os/x86_64/Packages/.

#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 ( Note: These two installation commands are used together, separated by a space between the two packages to be installed

Fourth step to Http://mirrors.163.com's CentOS help documentation

Download the Centos6-base-163.repo file in the/ETC/YUM.REPO.D

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

The fifth step is to change the $releasever in Centos6-base-163.repo to CentOS. Version number can be. If you are using the Centos6.4, you only need to change the $releasever place to 6, the full text of about 10 changes place.

To prevent errors, you can also use the files I have modified http://pan.baidu.com/s/1o6AZ23o

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.

#

#

[Base]

Name=centos-6-base-163.com

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

#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=os

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#released Updates

[Updates]

Name=centos-6-updates-163.com

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

#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=updates

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#additional packages that could be useful

[Extras]

Name=centos-6-extras-163.com

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

#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=extras

Gpgcheck=1

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

#additional packages that extend functionality of existing packages

[Centosplus]

Name=centos-6-plus-163.com

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

#mirrorlist =http://mirrorlist.centos.org/?release=6&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-6-contrib-163.com

baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/

#mirrorlist =http://mirrorlist.centos.org/?release=6&arch= $basearch &repo=contrib

Gpgcheck=1

Enabled=0

Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6

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

Reference Links:

Linux Learning notes Redhat Enterprise Linux 6.4 using the Centos 6 yum source issueYum is dead, long live DNF.

The latest version of Fedora for Linux distributions Fedora 22 will discard the Yum Package Manager instead of DNF, because Yum is considered a dead item. Yum has three major drawbacks: a file-less API, a broken-down dependency resolution algorithm, and the inability to refactor internal functionality. And the third problem is closely related to the first one. DNF is a branch of Yum that is committed to avoiding these problems. The DNF can be run on Python 2 and Python 3, and can coexist with yum in the system. Users can still download the Yum package, but the Yum executable will be renamed to Yum-deprecated.

RedHat 6.2 Linux Modified Yum source free use of CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm

Configuring Epel Yum Source http://www.linuxidc.com/Linux/2012-10/71850.htm

Redhat local Yum Source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm

Yum configuration file Description http://www.linuxidc.com/Linux/2013-04/83298.htm

RedHat 6.1 Install yum (graphic) http://www.linuxidc.com/Linux/2013-06/86535.htm

YUM Installation and Cleanup http://www.linuxidc.com/Linux/2013-07/87163.htm

Build Yum Local source http://www.linuxidc.com/Linux/2014-07/104533.htm on CentOS 6.4

This article permanently updates the link address : http://www.linuxidc.com/Linux/2015-05/117666.htm

RedHat Enterprise Linux 6.4 using the CentOS 6 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: 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.