LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   yum and RHEL4 (https://www.linuxquestions.org/questions/red-hat-31/yum-and-rhel4-472650/)

fbarsoba 08-10-2006 10:10 AM

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

Lenard 08-10-2006 11:58 AM

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.

fbarsoba 08-10-2006 12:23 PM

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

fbarsoba 08-10-2006 12:42 PM

Ok, done it! thanks a lot!!

fernando

Lenard 08-10-2006 02:09 PM

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.


All times are GMT -5. The time now is 10:47 AM.