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



How To Install Yum - Problems Installing On Linux RedHat Fedora Commands
 (382) Find work at Home Jobs
How To Install Yum - Problems Installing On Linux RedHat Fedora Commands
Post Description:
Post Tags: how, to, install, yum, problems, installing, on, linux, redhat, fedora, commands
This Post Has Been Viewed 14350 Times Since Wed Nov 15, 2006 4:06 pm Posted By pinguin with 19 replies
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.

change to your root directory:

     Code:
cd ~

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

     Code:
mkdir yum

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

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

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

Untar the package

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

change directory to the directory you untar

     Code:
cd yum-2.0.7

run the configuration file

     Code:
./configure

make configuration

     Code:
make

make installation

     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

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Install Yum - Problems Installing On Linux RedHat Fedora Commands




:: 1 :: #131 - Reply By pinguin On Tue Nov 28, 2006 1:15 pm
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
:: 2 :: #11289 - Reply By Mike On Tue Jul 17, 2007 2:53 pm
thanks for the tutorial - worked like a charm on a rh9 install without yum installed. perfect!
:: 3 :: #13938 - Reply By stephan On Fri Aug 03, 2007 2:15 pm
y did just like you said and y encaounter this erreor
my pyton version is 2.2.2 when y ran yum update it reterne this
downloading packages
getting samba-client-2.2.7a-8.9.0.i386.rpm
retrygrab() failed for:
mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/9//x86/i386/samba-client-2.2.7a-8.9.0.i386.rpm
executing failover method
failover: out of servers to try
error getting file mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/9//x86/i386/samba-client-2.2.7a-8.9.0.i386.rpm
[errno 4] ioerror: http error 404: not found
could you please help me on this
my os intallation is red hat9
thank
you
:: 4 :: #23344 - Reply By nibu On Sun Oct 07, 2007 9:34 pm
i too got the error message as
retrygrab() failed for:
mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/9//x86/i386/samba-client-2.2.7a-8.9.0.i386.rpm
executing failover method
failover: out of servers to try
can anyone help me?
:: 5 :: #24632 - Reply By Marc On Wed Oct 17, 2007 3:03 pm
i am having same problem. the reason is if you follow the path and insert this in the url you will discover that it does not exist. so you will need to find another mirror site. unfortunately i haven't found a alternative. mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/9//x86/i386/samba-client-2.2.7a-8.9.0.i386.rpm
:: 6 :: #34689 - Reply By D S Bob On Sat Jan 05, 2008 3:39 am
unable to install gcc
:: 7 :: #38080 - Reply By Deepu On Fri Jan 25, 2008 1:16 am
i can't able install yum and mp3 files also not opening can u give any easy commands & helpful commands

thanks
:: 8 :: #42256 - Reply By rousseaun On Thu Feb 21, 2008 8:59 am
Reply How To Install Yum - Problems Installing On Linux RedHat Fedora Commands
i'm really shocked, not to get 'yum' in my rhel-4
:: 9 :: #45536 - Reply By vishwanathan On Sat Mar 15, 2008 6:30 am
i use redhat 4...but the above comman on yum..did not give any error..its not installed yet..
if i give rpm -q yum it says not installed
i use python 2.3..
plz help
:: 10 :: #48460 - Reply By Hoey Broey On Thu Apr 03, 2008 2:12 pm
getting yum to work on red hat rhel 4

these are the steps i took to install yum and get it to work on rhel 4 as:

(from /root directory)

mkdir /yum
cd /yum

wget dag.wieers /rpm/packages/sqlite/sqlite-2.8.16- dag.wieers /rpm/packages/python-sqlite/python- dag.wieers /rpm/packages/python-urlgrabber/pyt dag.wieers /rpm/packages/python-elementtree/py dag.wieers /rpm/packages/yum/yum-2.4.2-0.4.el4 -ivh sqlite-2.8.16-1.2.el4.rf.i386.rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386 -ivh python-urlgrabber-2.9.6-1.2.el4.rf. -ivh python-elementtree-1.2.6-7.el4.rf.i -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
-uhv apt.sw.be/redhat/el4/en/i386/rpmfor found the packages and info i needed on:

dag.wieers /rpm/packages/?m=d

and
dag.wieers /rpm/faq.php#b
:: 11 :: #48461 - Reply By Hoey Broey On Thu Apr 03, 2008 2:15 pm
ooooh! jeez, i'm terribly sorry. my previous post looks garsh-awful. i copied and pasted straight from wordpad. i'll post it again....
:: 12 :: #48462 - Reply By Hoey Broey On Thu Apr 03, 2008 2:17 pm
getting yum to work on red hat el 4

these are the steps i took to install yum and get it to work:

(from /root directory)

mkdir /yum
cd /yum

wget dag.wieers /rpm/packages/sqlite/sqlite-2.8.16- dag.wieers /rpm/packages/python-sqlite/python- dag.wieers /rpm/packages/python-urlgrabber/pyt dag.wieers /rpm/packages/python-elementtree/py dag.wieers /rpm/packages/yum/yum-2.4.2-0.4.el4 -ivh sqlite-2.8.16-1.2.el4.rf.i386.rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386 -ivh python-urlgrabber-2.9.6-1.2.el4.rf. -ivh python-elementtree-1.2.6-7.el4.rf.i -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
-uhv apt.sw.be/redhat/el4/en/i386/rpmfor found the packages and info i needed on:

dag.wieers /rpm/packages/?m=d
and
dag.wieers /rpm/faq.php#b

:: 13 :: #48463 - Reply By Hoey Broey On Thu Apr 03, 2008 2:19 pm
crud! it still didn't post the way i formatted it! aaarrrgghhh!

ok, i'll try this line by line...
:: 14 :: #48465 - Reply By Hoey Broey On Thu Apr 03, 2008 2:20 pm
getting yum to work on red hat el 4

these are the steps i took to install yum and get it to work:

(from /root directory)

mkdir /yum
cd /yum

next, i downloaded all the necessary rpm packages.
:: 15 :: #48467 - Reply By Hoey Broey On Thu Apr 03, 2008 2:21 pm
wget dag.wieers /rpm/packages/sqlite/sqlite-2.8.16-
:: 16 :: #48468 - Reply By Hoey Broey On Thu Apr 03, 2008 2:25 pm
ah, i see. since i'm not a member, i can't post the links

ok, i downloaded (wget'd) all the necessary packages from dag wieers (dag.wieers )

/rpm/packages/sqlite/sqlit
:: 17 :: #48469 - Reply By Hoey Broey On Thu Apr 03, 2008 2:26 pm
/rpm/packages/sqlite/sqlite-2.8.16-
:: 18 :: #48470 - Reply By Hoey Broey On Thu Apr 03, 2008 2:27 pm
ah, screw it! just trying to be helpful.
but since i'm not a member, it doesn't know me from a spam bot.
oh well, maybe i'll join later. gotta go!
:: 19 :: #56944 - Reply By Tierno On Sun Jun 08, 2008 3:39 am
thanks for the help. it worked just fine.