For newly installed RHEL6.6, the following issues may occur when Yum is installed:
#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 searching, the following is a solution that combines network-related data.
System: RedHat Enterprise Linux 6.6
Rhel-server-6.6-i386-dvd.iso
This is: http://pan.baidu.com/s/1c0FOfNq
If you remove the prompt to register, uninstall several packages:
#rpm-qa | grep Subscription-manager
Then remove the items that appear:
#yum Remove Subscription-manager-gnome
#yum Remove Subscription-manager-firstboot
#yum Remove Subscription-manager
Incidentally in the removal
# yum Remove Rhn-setup-gnome
There is no option to register in the management.
=================================================================
The following updates the Yum source again.
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/1qW5WlgK
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.i686.rpm
#rpm-IVH yum-3.2.29-69.el6.centos.noarch.rpmyum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
Fourth step, use the wget command to download the Centos6-base-163.repo file in the http://mirrors.163.com CentOS Help document and store it in the/etc/yum.repos.d/directory
#wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
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 Http://pan.baidu.com/s/1mg5ytug
To open Centos6-base-163.repo in VI, use the following replacement command:
: 1, $s/$releasever/6/gc
Can be replaced in turn.
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 use this forcentos 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
After completing the above instructions, the update is successful.
RedHat Enterprise Linux 6.6 using the Centos 6 yum source problem