x86_64 Address: http://mirrors.163.com/centos/6/os/x86_64/Packages/
The necessary packages to download are (for example, 64-bit systems):
1> python-iniparse-0.3.1-2.1.el6.noarch.rpm
2> yum-3.2.29-40.el6.centos.noarch.rpm
3> yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
4> yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Uninstall the Yum that comes with Redhat
Rpm-qa | grep Yum | Xargs rpm-e--nodeps
Note:1> Xargs is a common command for UNIX and UNIX-like operating systems. It does this by converting the argument list to small pieces to pass to other commands to avoid the problem of too long argument lists
2>--nodeps forced uninstallation, regardless of dependencies
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]: The last 2 need to be installed together, or there will be a dependency error
Download the Centos6-base-163.repo file in the http://mirrors.163.com CentOS Help document and store it in/ETC/YUM.REPOS.D
cp/usr/local/src/centos6-base-163.repo/etc/yum.repos.d/
Edit the Centos6-base-163.repo file to change the $releasever to the CentOS version number
Vi/etc/yum.repos.d/centos6-base-163.repo
:%s/$releasever/6.5/g
6. Yum Clean all clears the original cache
7. Yum Makecache get Yum list
The following prompt indicates that the Yum change is complete:
Metadata Cache Created
RedHat Enterprise Linux6.4 using CentOS Yum