1, first to Http://mirrors.163.com/centos download package
x86 Address: http://mirrors.163.com/centos/6/os/i386/Packages/
x86_64 Address: http://mirrors.163.com/centos/6/os/x86_64/Packages/
The necessary packages to download are (for example, 64-bit systems):
A python-iniparse-0.3.1-2.1.el6.noarch.rpm
b yum-3.2.29-40.el6.centos.noarch.rpm
C yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
D yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Download command:
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/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-40.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
(sometimes there will be mirrors.163.com unresolved, there are 2 solutions, one is direct access to http://mirrors.163.com/centos/6/os/ Select the appropriate system version and search for the required installation package, or add dns1:114.114.114.114 or 8.8.8.8 to the Ifcfg-etho)
2. Uninstall the Yum that comes with Redhat
Rpm-qa | grep Yum | Xargs rpm-e--nodeps
--nodeps forced uninstallation, regardless of dependencies
3. Install the download of the CentOS Yum package:
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
the last 2 need to be installed together, or there will be a dependency error
4. Download the Centos6-base-163.repo file and store it in the/ETC/YUM.REPO.D
cd/etc/yum.repo/
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
5. Edit the Centos6-base-163.repo file and change the $releasever to the CentOS version number
VI Centos6-base-163.repo
In command mode, enter: 0, $s/\ $releasever/6/g
6. Yum Clean all clears the original cache
7.yum Makecache get yum list
This article is from the "Summperpalace-linuxsa" blog, make sure to keep this source http://rockjz.blog.51cto.com/1617227/1659250
redhat6.x modifying yum source to Centos-163 source