RHEL 5.2 yum update with CentOS 5.2 repositories- possible?
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.