LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-19-2013, 07:29 AM   #1
g4gupta
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Rep: Reputation: Disabled
RHEL 5.x as a yum server for RHEL 6.x


Hi,

I am trying to make a RHEL5.x server work as the Yum repository sever for my dc with RHEL6.x. There are some rpm inconsistencies due to which the metadata for rhel6 rpm's cannot be extracted by rhel6 . I was hoping if somebody had a workaround to this as i don't want to (cannot actually due to business needs) upgrade my rhel5 server and yes i want this server only as my yum server.

Please help out if somebody has any suggestions regarding this .
 
Old 02-19-2013, 07:56 AM   #2
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 782

Rep: Reputation: Disabled
What inconsistencies? Please shed more light on the exact issue for everybody to get the idea.

On a different note, I have this link in my bookmarks using which I created a local yum repo successfully. May be of some help :-



Regards.
 
Old 02-19-2013, 08:11 AM   #3
g4gupta
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
This is what we have on the RHEL site

"Because RPM packages for Red Hat Enterprise Linux 6 are compressed using the XZ lossless data compression format, and may also be signed using alternative (and stronger) hash algorithms such as SHA-256, it is not possible to run createrepo on Red Hat Enterprise Linux 5 to create the package metadata for Red Hat Enterprise Linux 6 packages. The createrepo command relies on rpm to open and inspect the packages, and rpm on Red Hat Enterprise Linux 5 is not able to open the improved Red Hat Enterprise Linux 6 RPM package format."
 
Old 02-19-2013, 08:15 AM   #4
g4gupta
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I was basically thinking that if I could get the metadata generated on an RHEL6 server and then find a way to import that back to my rhel5 server and still make it work as the YUM server for the rest of the servers in my DC , not sure if that will work though ...
 
Old 02-19-2013, 12:35 PM   #5
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by g4gupta View Post
I was basically thinking that if I could get the metadata generated on an RHEL6 server and then find a way to import that back to my rhel5 server and still make it work as the YUM server for the rest of the servers in my DC , not sure if that will work though ...
If it is physical machine,is it possible you to create a virtual machine inside RHEL 5. Install RHEL 6 in virtual machine.
 
Old 02-19-2013, 11:53 PM   #6
g4gupta
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
All these are virtual machines and i cannot create any further virtual machines on them .
 
Old 02-20-2013, 12:06 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
As the text from RH says, you'll need another system somewhere, either a VM or a spare box, just for this.
What you can do is then nfs share the v6 repos to the current box, so the other systems can't tell the difference

The other option of course is RH Satellite (aka Spacewalk for the free version) which allows you to provide 'repos' for any RHEL5 & 6 and extras like customised channels for each 'client' system.
Effectively a local copy of RHN-in-a-box.
 
1 members found this post helpful.
Old 02-20-2013, 12:34 PM   #8
g4gupta
LQ Newbie
 
Registered: Feb 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes .. that sounds like a good idea ..
 
  


Reply

Tags
rhel5, rhel6, rpm, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 server and client configaration same pc (RHEL 6) johnyhasan Linux - Newbie 3 12-23-2012 06:46 AM
Creating YUM Server in RHEL 6 v11pandey Linux - Newbie 9 10-31-2012 05:33 AM
yum server Configuration on rhel 5 Toushi Linux - Server 3 02-10-2012 02:14 PM
how to configure yum server on rhel-5 without use of internet? jayaswalsnehil Linux - Newbie 1 01-17-2011 04:56 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration