LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-10-2006, 10:10 AM   #1
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Rep: Reputation: 15
yum and RHEL4


Hi,

I'm trying to use yum with RHEL4.. but so far no success.. It seems I have a problem with the repos.. Could you please guide me through this process? I tried to run up2date as well.. but nothing..

I thought CentOS was compatible with RHEL4, so I tried to use it..

Here's what i'm doing..

Code:
[root@sitkaspruce ~]$ yum update
Setting up Update Process
Setting up repositories
http://mirror.centos.org/centos/Null/os/i386/repodata/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.
And my yum.conf is this:

Code:
[root@sitkaspruce ~]$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=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

Thanks in advance,
fernando
 
Old 08-10-2006, 11:58 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Do you notice this;?release=$releasever&arch ???? Check your redhat-release file, does it say something like;

$ cat /etc/*release
CentOS release 4.3 (Final)

If no, then how do you expect to get the repo info (think about it)?????

Yes CentOS is binary compatible with Red Hat Enterprise Linux 4, but this does not mean they are exactly the same. Yum can be used to get some packages like those from rpmforge along with other places but not from Red Hat;

http://dag.wieers.com/packages/rpmforge-release/

For up2date either pay for the Red Hat subscription or switch to CentOS.
 
Old 08-10-2006, 12:23 PM   #3
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Ok, thanks... I typed cat /etc/*realease and this is what i've got:
Code:
[root@sitkaspruce ~]$ cat /etc/*release
Red Hat Enterprise Linux WS release 4 (Nahant Update 3)
So I guess I have to find the RHEL4 repos, right? Sorry, i've never done this before and dont quite understand the logic behind it..

tnx,
fernando
 
Old 08-10-2006, 12:42 PM   #4
fbarsoba
Member
 
Registered: Dec 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Ok, done it! thanks a lot!!

fernando
 
Old 08-10-2006, 02:09 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Sorry if my reply sounded short...........

No logic is needed, a little common sense does helps in this case.

CemtOS is not a Red Hat project but does closely follow this prominent North American Enterprise Linux vendor. Just as Ford and Honda are both car companies, it is not a good idea to install Ford Mustang parts on a Honda Civic, nor is it a good idea to use the others customer services. Please see;

http://www.centos.org/modules/tinyco...index.php?id=2

Also , I'm glad you took the clue (and link) to use the rpmforge yum repo and you are welcome.
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
Where to download YUM for RHEL4? valnar Linux - Newbie 5 02-22-2007 12:46 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
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:09 AM.

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