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 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo download to/etc/yum.repos.d/directory below 4, run Yum Makecache generate cache
Linux system installation Yum environment