How to install yum on linux server

To install yum you need to first need to create a temp directory.
on centos i normally use this directory to download rpms
cd /usr/src/
now run the follow command once you are in that temp directory so that rpm is downloaded.
to check the packages goto

Now you have got all the Rpms on your system to install Rpms use the following command.
$rpm -ivh libsqlite-2.8.15-1.i386.rpm
$rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm
$rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
$rpm -ivh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
$rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
Now you need to Setup the Repository

$rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm
Congratulations Yum is installed to update all packages use this command.

$yum update