Very simple: including
1. Uninstall the original yum tool of Redhat:
Rpm-aq | grep yum | xargs rpm-e -- nodeps2. Install the yum tool in the CentOS release:
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Rpm-ivh python-iniparse-0.2.3-4.el5.noarch.rpm
Rpm-ivh yum-* 3. Update library files:
Wget http://sudone.com/download/CentOS-Base.repo-O/etc/yum. repos. d/CentOS-Base.repo attachment CentOS-Base.repo File Download: CentOS-Base
4. Use
Yum install httpd5. Expand official CentOS rpm Resources
A. Added support for rpmforge:
Wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
Rpm-ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm by extending rpmforge, we use yum to install rpm packages officially unavailable to CentOS such as rrdtool.
B. epel support:
Wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Rpm-ivh epel-release-5-4.noarch.rpm by extending epel, we can use yum to install puppet tools.