LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-11-2008, 10:25 PM   #1
damunzy
LQ Newbie
 
Registered: Jan 2004
Location: Central NJ, USA
Distribution: Fedora, CentOS, Gentoo, Ubuntu
Posts: 5

Rep: Reputation: 0
RHEL 5.2 yum update with CentOS 5.2 repositories- possible?


I have Sun VirtualBox installed on my XP system and have a few different guest OSes I am trying out. I have CentOS 5.2 installed and updated it with no problem with yum (and the gui for it). I got a trial of Red Hat Enterprise Linux (RHEL) 5.2 knowing that I wouldn't be able to update it through the Red Hat Network (RHN) but I wanted to see how much difference there was between RHEL and CentOS (I want to get my RHCE some time in the future).

I tried to update RHEL 5.2 by just downloading the individual RPMs so that I could install the Guest addons for VirtualBox- it needs gcc, kernel-devel, and kernel-headers I believe in order to install. Trying the manual RPM route was a mess as all the dependencies started yelling at me so I figure I would try adding the CentOS yum repository to my RHEL box. I emailed myself the /etc/yum.repos.d/CentOS-Base.repo and dropped it into the RHEL's /etc/yum.repos.d/ directory. When I try to run the update I get the error:
Quote:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again.
I am pretty sure the problem is that in the CentOS repo it has variables for certain parts of the update directory, example:
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

But my CentOS repo on the RHEL has this now:
mirrorlist=http://mirrorlist.centos.org/?release=5Server@arch=i386&repo=os

I guess what I need to know is what static variable, er constant, should I use for $releasever and basearch?

Plus, if I do put in the "correct" releasever and basearch will the updates work? AFAIK CentOS 5.2 and RHEL 5.2 are supposed to be binary compatible, right?

Thanks a million!
 
Old 08-11-2008, 10:30 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It should work, but will no longer be true redhat, so you may as well start with CentOS.
 
Old 08-11-2008, 10:35 PM   #3
damunzy
LQ Newbie
 
Registered: Jan 2004
Location: Central NJ, USA
Distribution: Fedora, CentOS, Gentoo, Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
I am not so worried about it being a "true redhat" (although I agree that this will make it less "true"). This is just an exercise that I am probably spending too much time on just because I want to figure it out.

Wow, just noticed that I registered way back in Jan 2004 and this is my third post!

Last edited by damunzy; 08-11-2008 at 10:36 PM.
 
Old 08-11-2008, 10:38 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I've seen it recommended many times for people who don't have subscriptions, and can't see why it wouldn't work, but haven't done it myself.
 
Old 08-12-2008, 02:30 AM   #5
karthikeyan.s
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
once again you will try to /etc/yum.repos.d/directory. via http or ftp as u like client side or server side.
surely it will updated
 
  


Reply

Tags
centos, centos52, rhel, rhel52, yum



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
Yum Repositories for RHEL 5 kdwillson Linux - Enterprise 3 02-11-2008 05:49 AM
Problem with yum installing djvu using freshrpms repositories , RHEL, x86_64 saak.stepi Linux - Software 7 01-15-2008 08:08 PM
CentOS 5 - yum & repositories jim.thornton Linux - Newbie 5 01-01-2008 01:24 AM
Yum Repositories for RHEL ES3 snowinferno Red Hat 2 10-18-2005 06:17 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:00 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