First, check the number of operating digits of the system.
Uname-
How to Use CentOS6 yum source for 32-bit Linux 6.3 Server
1. Uninstall yum
# Rpm-aq | grep yum | xargs rpm-e -- nodeps
Download the centos package:
Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-metadata-parser-1.1.2-14.1.el6.i686.rpm
Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
2. Install the downloaded package
Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
Rpm-ivh yum-metadata-parser-1.1.2-14.1.el6.i686.rpm
Rpm-ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
The last two packages are installed simultaneously.
When downloading this yum-metadata-parser-1.1.2-14.1.el6.i686.rpm package, pay attention to the number of digits of your operating system, This Is A 32-bit package,
This is a 64-bit: wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64
If the 64-bit package is installed on a 32-bit system, the following error occurs:
There will be a lot of dependency packages, even if the installation is successful, there will be more dependencies, I made such a low-level error, it is very important to be careful.
Download the CentOS-Base.repo for the yum configuration file
Address: http://mirrors.163.com/.help/CentOS6-Base-163.repo
# Vi CentOS6-Base-163.repo
Edit the file and replace all $ releasever in the file with the version number.
Replace command in vi: % s/$ releasever/6/g
Finally, put the file under/etcyum. repos. d /.
5. Clear yum Cache
# Yum clean all
# Yum makecache # create a cache
# Yum install vim # test and install vim
# Yum update # upgrade the system.
So far, yum configuration is complete.