<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Courier New";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>Here's what I do to allow me to download multiple distros /
architectures on my spacewalk server.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>My spacewalk server is running CentOS 5 x86_64.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>say I stage everything in
/var/www/html/pub/<distro>-<arch> as suggested in the wiki, for
example CentOS5-x86_64, i'll create a /var/www/html/pub/CentOS5-i386/yum.conf
file and /var/www/html/pub/CentOS5-i386/yum.repos.d and directory.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>I then customize the yum.conf to point to the customized repo
files and a different cache directory / log file:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>reposdir=/var/www/html/pub/CentOS5-i386/yum.repos.d<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>cachedir=/var/cache/yum-i386<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>logfile=/var/log/yum-i386.log<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>My reposync commands for CentOS5-i386 start like this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>reposync --config=/var/www/html/pub/CentOS5-i386/yum.conf
--arch=i686 --repoid=centos5-base<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>I tried using the existing /etc/yum.conf and /etc/yum.repos.d
and couldn't consistently download the entire set of files and ultimately found
that if I hard coded the URLs in the repo files, everything worked, for
example:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>[centos5-base]<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>name=CentOS-5 - Base i386<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>When I decided to add CentOS 4 x86_64 channels to the spacewalk
server, it was simple to duplicate the configuration used for CentOS5-i386 and
make the slight changes to the yum.repos.d files.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>As for RHEL4, I'm still trying to come up with a solution for
them, I may end up converting them to CentOS4.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#1F497D'>Hope this helps,<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>On
Behalf Of </b>Wojtak, Greg<br>
<b>Sent:</b> Thursday, June 25, 2009 9:03 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> RE: [Spacewalk-list] reposync RHEL repositories on Centos
Spacewalk<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The only other thing I can think of is to use the –n(?)
option to only grab the newest RPM’s, compare against what’s on the
latest DVD iso, and then only rhnpush what’s not there into an updates
channel the same way CentOS does.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Is there a good way to compare two rpm’s and see which one
is newer?  I tried coming up with a regular expression to grab the version
out of the filename for comparison, but it is not very reliable.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>On
Behalf Of </b>Shao Ming<br>
<b>Sent:</b> Wednesday, June 24, 2009 9:36 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] reposync RHEL repositories on Centos
Spacewalk<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>I am trying to avoid that. I
hope to hv all reposync, be it RHEL Centos Fedora, to be done on the same
Spacewalk box. I'm sure that is possible but I can't seem to locate the info in
this list...<o:p></o:p></p>

<div>

<p class=MsoNormal>On Wed, Jun 24, 2009 at 8:42 PM, Wojtak, Greg <<a
href="mailto:GregWojtak@quickenloans.com">GregWojtak@quickenloans.com</a>>
wrote:<o:p></o:p></p>

<p class=MsoNormal>Here's what I did:<br>
<br>
On my RHEL servers (with valid rhn subscriptions), I installed and ran reposync
for the appropriate RHN repositories I needed for my environment.  I then
rhnpush'ed those - for RHEL 5 it was a total of 5353 packages and for x86_64 it
was 7000+.  I don't have any better idea how to manage those, and I am
still trying to figure out how I am going to manage them going forward.
 But at least I have a consistent set... for now.<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
[mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>]
On Behalf Of Alexandros Soumplis<br>
Sent: Wednesday, June 24, 2009 5:28 AM<br>
To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
Subject: Re: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk<br>
<br>
Hi!<br>
<br>
Ok, i understand. Well I do not use any RHEL clients on my spacewalk<br>
infrastructure to be more helpful but I am more than convinced that you<br>
need to have a valid rhn subscription and then configure yum appropriately<br>
to connect to rhn repos as well. However it would be better if someone<br>
else on the list with rhel client can shred more light :-)<br>
<br>
<br>
<br>
> Hi Soumplis,<br>
><br>
> thanks for the quick reply. I think I was not too clear in my earlier<br>
> e-mail. I apologise.<br>
><br>
> Currently, I have a mix of Centos and RHEL boxes. I have managed to use<br>
> reposync to download packages for Centos and rhnpush to Spacewalk. My<br>
> Spacewalk is installed on a Centos.<br>
><br>
> What I am having problem is wondering how to reposync with RHEL packages?<br>
> Do<br>
> I create a rhel repo at /etc/yum.repos.d/? Do I need a rhn subscription<br>
> account? I'm lost on this part.<br>
><br>
> thanks<br>
> Shao Ming<br>
><br>
><br>
> 2009/6/24 Alexandros Soumplis <<a href="mailto:soumplis@ekt.gr">soumplis@ekt.gr</a>><br>
><br>
>> I think you make a mistake. As long as your clients are CentOS boxes<br>
>> then<br>
>> you need to use reposync on your spacewalk server to download CentOS<br>
>> packages from a CentOS repository. Reposync uses your existing yum<br>
>> configuration and repositories. After you've downloaded the packages
you<br>
>> can use rhnpush to push those packages into spacewalk repository.
There<br>
>> are lots of information on the wiki and on this list archives.<br>
>><br>
>><br>
>><br>
>> > Hi,<br>
>> ><br>
>> > just started on spacewalk and need some answers/helps.<br>
>> ><br>
>> > I have manged to to create Software channels for my Centos 5.x<br>
>> clients. I<br>
>> > also have a few RHEL boxes and hope to point them to spcewalk
also.<br>
>> Can<br>
>> > someone explain how I can use the reposync to download packages
from<br>
>> rhn<br>
>> > and<br>
>> > push them to spacewalk?<br>
>> > I do not have any 'rhel' repoid in my Centos install.<br>
>> ><br>
>> > thanks<br>
>> > Shao Ming<br>
>> > _______________________________________________<br>
>> > Spacewalk-list mailing list<br>
>> > <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
>> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"
target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Spacewalk-list mailing list<br>
>> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
>> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"
target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
>><br>
><br>
<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>