Wednesday, August 26, 2009

Download yum source rpm from public Red Hat ftp server and rebuild yum rpm:

SkyHi @ Wednesday, August 26, 2009
(c) Download yum source rpm from public Red Hat ftp server and rebuild yum rpm:
# wget http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/yum-3.0.1-5.el5.src.rpm
# rpm -ivh yum-3.0.1-5.el5.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bb yum.spec
# rpm -ivh --force /usr/src/redhat/RPMS/noarch/yum-3.0.1-5.noarch.rpm
# yum --version


Reference: http://www.cyberciti.biz/faq/reinstall-deleted-yum-command/