1. Description of the problem
Yum function under RedHat6.5 solve the problem can not be used:
when using yum installed in redhat6.5, will prompt: This system is not registered to Red Hat Subscription Management You can use subscription-manager to register..
Because centos6.5 and redhat6 consistent .5 version, so you can uninstall the original yum, yum centos6.5 replaced by the
2, the solution
2.1 Uninstall native yum
View yum version is installed
rpm -qa|grep yum
Uninstall the installed yum
rpm -qa|grep yum|xargs rpm -e --nodeps
Create a folder to store rpm package
mkdir /opt/yum-package
2.2 installing a new yum
Download rpm package
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
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/python-urlgrabber-3.9.1-11.el6.noarch.rpm
Related to the installation package rpm
rpm -ivh yum*
rpm-ivh python*
Configuration yum source (yum source used here is 164)
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Backup original source yum
mv rhel-source.repo rhel-source.repo.bak
All $ releaserver CentOS6-Base-163.repo file replaces 6
sed -i "s;\$releasever;6;g" CentOS6-Base-163.repo
2.3 reconstruction yum
Reconstruction yum
yum clean all
yum makecache
3, error
: If an error occurs
FatalPythonerror: pycurl: libcurl link-time version is older than compile-time version
Solution:
After check data and found that the problem is caused by environment configuration; then, finally write in / etc / profile:
export LD_LIBRARY_PATH=/usr/lib64:/usr/lib:/usr/local/VMProg/lib:/usr/local/VMProg/lib/vmware-vix-disklib/lib64:/lib64:${LD_LIBARY_PATH}
Then, source / etc / profile, the entry into force of the environment, can be solved