wallpaper rama - How To Install Yum - Problems Installing On Linux RedHat Fedora Commands


wallpaperramaForumsDedicated Hosting



How To Install Yum - Problems Installing On Linux RedHat Fedora Commands
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.

[color=orange:087931dac2]change to your root directory:[/color:087931dac2]

     Code:
cd ~

[color=orange:087931dac2]Make a directory called yum (you can call it whatever you want)[/color:087931dac2]

     Code:
mkdir yum

[color=orange:087931dac2]change directory to the directory you just created (i used yum)[/color:087931dac2]

     Code:
cd yum

[color=orange:087931dac2]Download the yum version of your choice, i my case, i am downloading version 2.0.7 for my redhat Enterprise Edition Version 3[/color:087931dac2]

     Code:
wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz

[color=orange:087931dac2]Untar the package[/color:087931dac2]

     Code:
tar -xvzf yum-2.0.7.tar.gz

[color=orange:087931dac2]change directory to the directory you untar[/color:087931dac2]

     Code:
cd yum-2.0.7

[color=orange:087931dac2]run the configuration file[/color:087931dac2]

     Code:
./configure

[color=orange:087931dac2]make configuration[/color:087931dac2]

     Code:
make

[color=orange:087931dac2]make installation[/color:087931dac2]

     Code:
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:

     Code:

> 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>.
>


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:


     Code:
python
Installing Yum In RedHat Advanced Server Enterprise Package Version RHEL4 3
Please note that the reason you have this operating system is because this is an enterprise level sorftware, which means you have to pay for a license, which means, that the RPMs are only provided by the provider, in this case, redhat. you need to buy a license. if you want to try an open source like centos or fedora, they come already with yum. but if you have a enterprise realease of redhat, you really need to buy a license from redhat for that type of suite.

HowTos/PackageManagement/YumOnRHEL - CentOS

Copyright © 2012 www.wallpaperrama.com All Rights Reserved

Hosting By Webune.com