LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-28-2006, 04:53 AM   #1
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Rep: Reputation: 15
How do I install yum on RH enterprise AS4?


I just recently installed a brand new Redhat AS4 - 64-bit OS. Since I'm used to Fedora I was wondering if it's adviseable to install yum. I did try before writing here.

Can yum be used together with the already operating "up2date" feature, e.g. can I use yum to find and install a program and still use up2date to update my system.
Since I am somewhat of a newbie in the liuxworld it is quite possible I did some newbie mistake. in any case this is what I did and the error I got.

rpm -Uvh yum-2.4.2-1.src.rpm

warning: yum-2.4.2-1.src.rpm: V3 DSA signature: NOKEY, key ID 69886cc7
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

I'd really appriciate any help.
 
Old 06-28-2006, 05:13 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
You are trying to install a source rpm (src = source), which is meant to be rebuilt into an rpm. YUM will work fine with RHEL 4.x but I don't think Redhat provides YUM or YUM repos for RHEL. CentOS which is a free RHEL rebuild uses YUM, so you could download their version of YUM and install that. There are several articles on google that can help you setup CentOS YUM on RHEL 4 (search for "RHEL+4+YUM"). Note that using CentOS YUM on RHEL may replace some Redhat packages with CentOS packages.
 
Old 06-28-2006, 06:41 AM   #3
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks for the quick reply. I followed the instructions found at: http://www.eth0.us/yum-rhel
-----------------------------------------------------------
mkdir /usr/local/src/yum
cd /usr/local/src/yum

wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...1.6-1.i386.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...2.6-4.i386.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...4.3.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...os4.noarch.rpm.
wget http://centos.cs.ucr.edu/centos/4/ap...2.2-1.i386.rpm

rpm -Uvh *rpm
-----------------------------------------------------------


I had to replace yum-2.4.0-1.centos4.noarch.rpm. with version 2.4.2-2, since the former did't exist. The same for yum-config (4.4-3 against 4.4-5).

unfortunately this resulted in the following error:


-----------------------------------
:> yum

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/python2.3/site-packages/cElementTree.so: cannot open shared object file: No such file or directory

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.3.4 (#1, Feb 6 2006, 10:38:45)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)]
-----------------------------------

Did I install a too old version of yum (that requires an older version of python), or what is the probelm? also, is there absolutely no problem of installing the i386 versions of all these programs when I'm using a 64 bits machine?
Thanks again for any help,
 
Old 11-05-2009, 08:05 AM   #4
smurff
Member
 
Registered: Sep 2004
Location: England
Distribution: Mandriva 2005LE / Whitebox
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by martinr View Post
Thanks for the quick reply. I followed the instructions found at: http://www.eth0.us/yum-rhel
-----------------------------------------------------------
mkdir /usr/local/src/yum
cd /usr/local/src/yum

wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...1.6-1.i386.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...2.6-4.i386.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...4.3.noarch.rpm
wget http://centos.cs.ucr.edu/centos/4/ap...os4.noarch.rpm.
wget http://centos.cs.ucr.edu/centos/4/ap...2.2-1.i386.rpm

rpm -Uvh *rpm
-----------------------------------------------------------


I had to replace yum-2.4.0-1.centos4.noarch.rpm. with version 2.4.2-2, since the former did't exist. The same for yum-config (4.4-3 against 4.4-5).

unfortunately this resulted in the following error:


-----------------------------------
:> yum

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/python2.3/site-packages/cElementTree.so: cannot open shared object file: No such file or directory

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.3.4 (#1, Feb 6 2006, 10:38:45)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)]
-----------------------------------

Did I install a too old version of yum (that requires an older version of python), or what is the probelm? also, is there absolutely no problem of installing the i386 versions of all these programs when I'm using a 64 bits machine?
Thanks again for any help,
Hi I am having the same issues. Did you ever fix it? Please let me know how.

Many thanks
Danny
 
Old 11-05-2009, 09:54 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 169Reputation: 169
Read the section Bootstrapping Yum. It tells you the packages that have to be replaced.
 
Old 11-05-2009, 10:01 AM   #6
smurff
Member
 
Registered: Sep 2004
Location: England
Distribution: Mandriva 2005LE / Whitebox
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
Read the section Bootstrapping Yum. It tells you the packages that have to be replaced.
Thanks I will have a read
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalling RH AS4 arsham Linux - Enterprise 1 04-14-2006 07:38 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
yum repositories for redhat enterprise server 3 snowinferno Linux - Enterprise 1 10-25-2005 04:34 PM
NIS on Redhat Enterprise Linux AS4 Simon04 Linux - Networking 2 04-12-2005 05:24 AM
yum redhat enterprise 3AS saag Linux - Newbie 0 08-22-2004 01:38 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration