- Dedicated Hosting
- How To Install Yum - Problems Installing On Linux Redhat Fedora Commands
these are the instructions for installing yum in a linux server which has red hat installed. red hat by default does not come with yum utility installed, so i will show you the shell commands you need to execute for the installation of yum in red hat 
Wed Nov 15, 2006
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:
Make a directory called yum (you can call it whatever you want)
change directory to the directory you just created (i used yum)
Download the yum version of your choice, i my case, i am downloading version 2.0.7 for my redhat Enterprise Edition Version 3wget 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
run the configuration file
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:
> 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>.
MAKE SURE TO DOWNLOAD THE CORRECT YUM VERSION:
* 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: