LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2009, 06:17 PM   #1
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16
Blog Entries: 1

Rep: Reputation: 0
Angry YUM not working on RHEL4


Hi,

can anyone help me get yum working on RHEL4. I have installed the package but when I run a yum update I get the following error.

root@ yum.repos.d]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
warning: rpmforge-release-0.3.6-1.el5.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@ yum.repos.d]# yum update yum
Insufficient server config - no servers found. Aborting.
[root@ yum.repos.d]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[root@ yum.repos.d]# rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpmforge-release-0.3.6-1.el5.rf.i386.rpm: (sha1) dsa sha1 md5 gpg OK

[root@ yum.repos.d]# yum check-update
Insufficient server config - no servers found. Aborting.
[root@ yum.repos.d]# yum install yum-plugin-priorities
Insufficient server config - no servers found. Aborting.
[root@ yum.repos.d]# yum update
Insufficient server config - no servers found. Aborting.

OK I have moved this forward a little. But am now getting these errors.

#yum list
Repository base is listed more than once in the configuration
Setting up repositories
http://mirror.centos.org/centos/4ES/...ta/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

Not sure if this is a problem with /etc/redhat-release file haven't incorrect release details for the yum variables. But am not sure.

Here is my /etc/yum.conf file

# more /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel
-hugemem kernel-hugemem-devel
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
[root@icgweb02 newreleases]#



and my /etc/redhat-release file

# more /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant)

Last edited by cozcol; 03-10-2009 at 08:37 PM.
 
Old 03-10-2009, 10:02 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
My advice is: stick with up2date.

If you're already familiar with yum, see here for up2date equivalents: http://kbase.redhat.com/faq/docs/DOC-2531
 
Old 03-10-2009, 10:38 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
here is one of your problems
Quote:
can anyone help me get yum working on RHEL4
...
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
You CAN NOT INSTALL rhel 5 rpm's and MOST DEFINITELY NOT an rhel 5 REPO on rhel 4
you must install the el4 repo and NOT the el5 repo.
 
Old 03-11-2009, 04:18 PM   #4
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Hi,

I have double checked and have not installed the rpmforge for EL5,

I will look to download the rpmforge for RHEL4.

rpm -qa rpmforge returned nothing, I must have downloaded that in my haste.

Thanks all for the replies but I am unable to use up2date as it prompts me to re-register and we no longer have any subscriptions for RHN.

So will need to install and use yum.

When I run YUM I get the following error.
yum list
Setting up repositories
not using ftp, http[s], or file for repos, skipping - 4ES is not a valid release or hasnt been released yet

this seems to be a release issue, maybe the /etc/redhat-release file is the issue.
 
Old 03-11-2009, 04:52 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
From your first post.

Quote:
root@ yum.repos.d]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

The el5 part of that rpm indicates that it is for el5 and not el4.

Here are the instruction for installing yum on RHEL4:

 
Old 03-11-2009, 06:03 PM   #6
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16

Original Poster
Blog Entries: 1

Rep: Reputation: 0
ok so my yum is now getting thus far after installing the following packages:

yum-2.0.5-1.noarch.rpm
rpm -Uvh yum-2.0.5-1.noarch.rpm
nano /etc/yum.conf
changed the baseurl in [base] to
http://mirror.dulug.duke.edu/pub/centos/4/os/$basearch/
changed the baseurl in [updates] to
http://mirror.dulug.duke.edu/pub/centos/4/updates/$basearch/


[root@etc]# yum list
Gathering header information file(s) from server(s)
Server: Fedora Core Null - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/cen...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/cen...rs/header.info
[Errno 7] HTTP Error (CannotSendRequest):


Maybe an incorrect BASE URL ?
 
Old 03-12-2009, 05:15 PM   #7
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Yum is installed on my RHEL4, but when I run yum it cannot locate any repo's

can anyone help me on this one.

Do I have to add some extra repo sites to CentOS Base file in /etc/yum.repos.d

yum.repos.d]# yum list
Gathering header information file(s) from server(s)
Server: Fedora Core Null - i386 - Base
retrygrab() failed for:
http://download.fedora.redhat.com/pu...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://download.fedora.redhat.com/pu...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
 
Old 03-12-2009, 05:27 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Weather you use yum or not you CANNOT access RHs repos unless you have a subscription. So yes, you need to use Centos's (or some other compatable) repo.

The version of yum that you listed above is also really old, see the link I posted above.
 
Old 03-12-2009, 08:46 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this is just VERY odd .You say you are using red hat enterprise 4 ( rhel4 ) BUT yum is throwing a "fedora core" error????
Quote:
[root@etc]# yum list
Gathering header information file(s) from server(s)
Server: Fedora Core Null - i386 - Base
retrygrab() failed for:
so is this rhel4 OR fedora 1,2,3,4 ,5

or do you for some reason have a fedora repo installed on that rhel4 box ??
can you post the out put of
Code:
yum repolist
but i am not sure if that very old yum on rhel 4 has this option
but to be honest rhel 4 is before my time 5.2 i know
 
Old 03-12-2009, 10:05 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
yum was not available for RHEL4(from Red Hat). After yum became the "standard", Fedora and Centos, RH added it, starting with RHEL5.X.

Even with C4 the defualt yum was 2.4.X., FC4 used 2.4 as well(I think).
 
Old 03-15-2009, 04:39 PM   #11
cozcol
LQ Newbie
 
Registered: Nov 2008
Posts: 16

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thanks all for your replies and help.

I finally got YUM working on RHEL4.

Once the correct YUM and other packages were installed I just had to correct my URL's in my repo's for the Centos Mirrors. Like so.

yum-2.4.2-0.4.el4.rf
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
python-celementtree-1.0.2-1.2.el4.rf.i386.rpm
python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
python-urlgrabber-2.9.6-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm

Then the correct repo's in /etc/yum.repos.d/

Add the Centos Mirrors into CentOS-Base.repo - Base and Updates as below

[base]
name=CentOS-$releasever - Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/4/os/$basearch/
# baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
#exclude=postgresql*

#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
 
Old 12-29-2009, 04:08 AM   #12
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Rep: Reputation: 0
Yum Error

Deleted
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to rhel4 and im trying to install yum appleimac Red Hat 7 02-28-2008 02:48 PM
How to install yum on RHEL4 anupamz Linux - Enterprise 1 02-07-2007 05:59 AM
yum and RHEL4 fbarsoba Red Hat 4 08-10-2006 02:09 PM
rhel4 and yum vboulytchev Linux - Software 2 08-09-2006 12:54 PM
yum on RHEL4 problem giovannym Linux - Newbie 1 07-11-2005 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration