how to install yum into centos 5

orait, got centos 5 vps/dedicated that don’t have yum installed?? enough doing googling but yet not find any WORKING solution?? (i hope so… haha)

actually last night my friend ask me to configure his centos vps which is dont have yum (i know, i’m noob and i cant work centos out without YUM)

so, here is the quick way to install YUM-my package manager in less then 10 minutes

download all this shit rpms into one folder name “yummy”

wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-6.el5.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2-47.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.0-8.fc6.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-2.x86_64.rpm

(my friend server is 64bit, if your server is 32bit, just replace x86_64 with i386

example: http://mirror.centos.org/centos/5/os/i386/CentOS/m2crypto-0.16-6.el5.1.i386.rpm

good, now we are going to install all those rpms

rpm -Uvh *.rpm

if this not working, just install those rpms one by one.

wallah, now it’s done. you can type yum now!

note: if you got this error Could not find any working storages.

try this magic command line

rpm -Uvh --replacepkgs sqlite-3.3.6-2.x86_64.rpm