Operating system: Red Hat Enterprise Linux 5
1. Uninstall Rhel's default installed Yum Package view Yum package rpm-qa|grep Yum Uninstall rpm-qa|grep yum|xargs rpm-e--nodeps 2, download new Yum package 64-bit Linux system download installation package wget Http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget/HTTP Centos.ustc.edu.cn/centos/5/os/x86_64/centos/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget/HTTP Centos.ustc.edu.cn/centos/5/os/x86_64/centos/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm32 bit Linux system download installation package wget http ://centos.ustc.edu.cn/centos/5/os/i386/centos/yum-3.2.22-40.el5.centos.noarch.rpmwget http://centos.ustc.edu.cn /centos/5/os/i386/centos/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget Http://centos.ustc.edu.cn/centos /5/os/i386/centos/yum-metadata-parser-1.1.2-4.el5.i386.rpm Note: The installation package may be upgraded and the last file name can be viewed under the most recent path, e.g. http:// centos.ustc.edu.cn/centos/5/os/x86_64/centos/http://centos.ustc.edu.cn/centos/5/os/i386/centos/ then install the rpm -IVH yum-* Note: Yum and yum-fastestmirror depend on each other, so they can be installed at the same time. 3. Download Yum configuration source using the command cd/etc/yum.repos.d/ enter the Yum configuration directory. Enter  WGE in the terminalT http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo command to download the Centos-base.repo file. Then back up the original Rhel-debuginfo.repo, using the command MV Centos-base.repo Rhel-debuginfo.repo, will centos- Base.repo renamed to Rhel-debuginfo.repo. 4, run Yum makecache generate cache
Yum package for CentOS installation