i tried to install apt-get into my redhat server, but for some reason, yum was not installed automatically, so i had to install it manually. so the first thing i need to do is to make sure i have an internet connection and wget to do the following commands a root:

NOTE: If you have LInux Redhat Enterprise, You will NOT be able to install YUM without a License. So if you don't have one, you will need to buy one from Redhat. Otherwise, if you want to have YUM in your server, try an Open Source Distribution like Fedora.

change to your root directory:
cd ~

Make a directory called yum (you can call it whatever you want)
mkdir yum

change directory to the directory you just created (i used yum)
cd yum

Download the yum version of your choice, i my case, i am downloading version 2.0.7 for my redhat Enterprise Edition Version 3
wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz

Untar the package
tar xvzf yum-2.0.7.tar.gz

change directory to the directory you untar
cd yum-2.0.7

run the configuration file

make configuration

make installation
make install

that's it - it worked for me

before i could get this to work, i installed the latest, it turned out i was installing the wrong version for my python version, so make sure you are installing yum for the correct version: before, i kept getting this error whenever i tried the update command:

> There was a problem importing one of the Python modules
> required to run yum. The error leading to this problem was:
>    /usr/lib/python2.4/site-packages/libxml2mod.so: undefined symbol:
> xmlSchemaIsValid
> Please install a package which provides this module, or
> verify that the module is installed correctly.
> It's possible that the above module doesn't match the
> current version of Python, which is:
> 2.4 (#1, Mar 22 2005, 21:42:42)
> [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)]
> If you cannot solve this problem yourself, please send this
> message to <yum at lists.linux.duke.edu>.


* yum 3.0.1 - Stable Release, Python 2.4+ and rpm 4.3+ systems only. Requires repomd repositories. Works under FC5, FC6 and rawhide.
* yum-metadata-parser 1.0.2 - C-based metadata parser to quickly parse xml metadata into sqlite databases.
* yum 2.6.X - Stable Release, Python 2.3+ and rpm 4.1.1+ systems requires repomd repositories: 2.6.1 latest known to work with some FC3, FC4, FC5, RHEL4 and compatible distributions
* yum 2.4.X - Stable Release, Python 2.3+ and rpm 4.1.1+ systems requires repomd repositories: 2.4.2 latest known to work with: FC3, FC4, RHEL4 and compatible distributions
* yum 2.0.X - for python 2.1+ and rpm 4.1.1-4.3.1 systems: 2.0.8 latest
* yum 1.0.X - for python 1.5.2+ and rpm 4.0.4 systems: 1.0.3 latest - considered obsolete

if you are not sure what version of python you have installed, send the following command to see your installed phython version: