Redhat The default comes with the Yum source need to register, to update, error:
This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.
Can be replaced with centos corresponding source. The operation is as follows:
1. Check if the Yum package is installed. To see if Rhel is installed with Yum, and if so, what Yum packages are available:
Rpm-qa |grep Yum
2 Delete Redhat's own Yum pack
Rpm-qa|grep Yum|xargs rpm-e--nodeps (without checking dependencies, delete rpm packages directly)
Rpm-qa |grep Yum (query confirmation)
[Email protected] ~]#
3. Download the new Yum package. Yum Package with Centos6.5
1) View the version number and system category:
Cat/etc/redhat-release
Arch
2) Follow the previous step to find the corresponding Yum package and download it. My server corresponds to the following:
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-60.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
3) Execution:
RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
If this step is an error, the outsole is as follows:
Libc.so.6 is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libc.so.6 (glibc_2.0) is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libc.so.6 (glibc_2.1.3) is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libglib-2.0.so.0 is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libpthread.so.0 is needed by yum-metadata-parser-1.1.2-16.el6.i686
libpython2.6.so.1.0 is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libsqlite3.so.0 is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libxml2.so.2 is needed by yum-metadata-parser-1.1.2-16.el6.i686
Libxml2.so.2 (libxml2_2.4.30) is needed by yum-metadata-parser-1.1.2-16.el6.i686
The Yum package downloaded and installed does not match the system version and requires a re-download of the installation. In addition, 163 mirror sites are merged into the 6 directory for 6.0~6.5 resources.
4) Replace the Yum source, delete or back up the original source under another:
cd/etc/yum.repos.d/
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
VI Centos6-base-163.repo
Edit the file and replace all the $releasever in the file with the version number: 6 (note, not 6.5!) ) Last Save!
4. Clear the original cache and rebuild the cache:
Clean all
Yum Makecache
5. Update the system:
Yum Update
Reference:
http://qingwang.blog.51cto.com/505009/1551228
Http://www.th7.cn/system/lin/201402/50472.shtml
Yum Pack Download: http://mirrors.163.com/centos/6/os/x86_64/Packages/
About free resolution for RedHat6.5: This system was not registered to Red Hat Subscription Management.