<html><body bgcolor="#FFFFFF"><div>There's a script on the wiki page called create channel by update, or something along those lines. Use that to create individual channels for each RH version and update you want. The big monolithic channel is my base channel. </div><div><br></div><div><br><br><div><br></div></div><div><br>On Jun 25, 2009, at 5:19 PM, "Wojtak, Greg" <<a href="mailto:GregWojtak@quickenloans.com">GregWojtak@quickenloans.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>

<!-- Converted from text/plain format -->

<p><font size="2">Am I missing something or is there a way to only download rpm's that are newer than, say, the 5.3 release?  Basically all the updates (only) since then?  I was hoping to set it up in a similar manner to CentOS with a base channel as the release and then a child channel for updates.  How are you doing it?  Just one monolithic RHEL5 channel?<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Mike Hanby<br>
Sent: Thursday, June 25, 2009 5:08 PM<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>
ditto, thanks Rob, I'm up to glibc-2.3...... and counting<br>
<br>
rhnget is pulling every single minor revision, sheesh :_)<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Wojtak, Greg<br>
Sent: Thursday, June 25, 2009 3:25 PM<br>
To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
Subject: RE: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk<br>
<br>
I figured it out - I grabbed the 0.8.6 source and simply did make install, and this includes the proper libraries.  I'm off and running now, just need to wait for updates to download.  Thanks!<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Mike Hanby<br>
Sent: Thursday, June 25, 2009 3:48 PM<br>
To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
Subject: RE: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk<br>
<br>
How did you install mrepo? using 'make install' or an RPM, or other?<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Wojtak, Greg<br>
Sent: Thursday, June 25, 2009 10:43 AM<br>
To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
Subject: RE: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk<br>
<br>
I've tried this, but get:<br>
# gensystemid -u <myrhnusername> -p '<myrhnpassword>' --release=4ES --arch=i386 /opt/apps/spacewalk/mrepo/4ES-i386<br>
<br>
And get a python traceback:<br>
<br>
Traceback (most recent call last):<br>
  File "/usr/bin/gensystemid", line 8, in ?<br>
    from up2date_client import config, rpcServer, up2dateErrors<br>
ImportError: No module named up2date_client<br>
<br>
Any ideas?<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Mike Hanby<br>
Sent: Thursday, June 25, 2009 11:12 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>
Thanks Rob, I'll give that a try. I have a whole drawer full of EL4 workstation entitlements, so that won't be a problem.<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Rob Becker<br>
Sent: Thursday, June 25, 2009 10:05 AM<br>
To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
Subject: RE: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk<br>
<br>
As long as you have entitlements RHEL is easy.<br>
<br>
Use mrepo to download the files. Here's my quick document on it.<br>
<br>
<br>
- tar xvf mrepo-0.8.6.tar<br>
- cd mrepo-0.8.6/ && make install<br>
- cp rhel4es.conf /etc/mrepo.conf.d<br>
- cp mrepo.conf /etc/<br>
- vi /etc/sysconfig/rhn/sources<br>
        - add : up2date default<br>
- add up2date-uuid<br>
        - uuidgen<br>
        - vi /etc/sysconfig/rhn/up2date-uuid/<br>
                - add: rhnuuid=4a9179f7-b462-497e-b40a-1876df68a530<br>
5. Generate SystemIDs'<br>
        - gensystemid -u <RHNLogin> -p <RHNPassword> --release=4ES<br>
--arch=i386 /opt/apps/spacewalk/mrepo/4ES-i386/<br>
        - gensystemid -u <RHNLogin> -p <RHNPassword>  --release=4AS<br>
--arch=x86_64 /opt/apps/spacewalk/mrepo/4AS-x86_64/<br>
<br>
6. Download Content<br>
        - rhnget --download-all -s /opt/apps/spacewalk/mrepo/4ES-i386/systemid<br>
-vv rhns:///rhel-i386-es-4 /opt/apps/spacewalk/rpms/rhel4es-i386/<br>
<br>
<br>
<br>
On Thu, 2009-06-25 at 10:54 -0400, Wojtak, Greg wrote:<br>
> I think I have a plan for RHEL.  I will try and piece it together and<br>
> let you all take a look and see what you think.<br>
><br>
> <br>
><br>
> From:spacewalk-list-bounces@redhat.com<br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Mike Hanby<br>
> Sent: Thursday, June 25, 2009 10:51 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<br>
> Spacewalk<br>
><br>
><br>
> <br>
><br>
> Here's what I do to allow me to download multiple distros /<br>
> architectures on my spacewalk server.<br>
><br>
> <br>
><br>
> My spacewalk server is running CentOS 5 x86_64.<br>
><br>
> <br>
><br>
> say I stage everything in /var/www/html/pub/<distro>-<arch> as<br>
> suggested in the wiki, for example CentOS5-x86_64, i'll create<br>
> a /var/www/html/pub/CentOS5-i386/yum.conf file<br>
> and /var/www/html/pub/CentOS5-i386/yum.repos.d and directory.<br>
><br>
> <br>
><br>
> I then customize the yum.conf to point to the customized repo files<br>
> and a different cache directory / log file:<br>
><br>
> reposdir=/var/www/html/pub/CentOS5-i386/yum.repos.d<br>
><br>
> cachedir=/var/cache/yum-i386<br>
><br>
> logfile=/var/log/yum-i386.log<br>
><br>
> <br>
><br>
> My reposync commands for CentOS5-i386 start like this:<br>
><br>
> reposync --config=/var/www/html/pub/CentOS5-i386/yum.conf --arch=i686<br>
> --repoid=centos5-base<br>
><br>
> <br>
><br>
> I tried using the existing /etc/yum.conf and /etc/yum.repos.d and<br>
> couldn't consistently download the entire set of files and ultimately<br>
> found that if I hard coded the URLs in the repo files, everything<br>
> worked, for example:<br>
><br>
> <br>
><br>
> [centos5-base]<br>
><br>
> name=CentOS-5 - Base i386<br>
><br>
> mirrorlist=<a href="http://mirrorlist.centos.org/?release=5&arch=i386&repo=os"><a href="http://mirrorlist.centos.org/?release=5&arch=i386&repo=os">http://mirrorlist.centos.org/?release=5&arch=i386&repo=os</a></a><br>
><br>
> <br>
><br>
> When I decided to add CentOS 4 x86_64 channels to the spacewalk<br>
> server, it was simple to duplicate the configuration used for<br>
> CentOS5-i386 and make the slight changes to the yum.repos.d files.<br>
><br>
> <br>
><br>
> As for RHEL4, I'm still trying to come up with a solution for them, I<br>
> may end up converting them to CentOS4.<br>
><br>
> <br>
><br>
> Hope this helps,<br>
><br>
> From:spacewalk-list-bounces@redhat.com<br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Wojtak, Greg<br>
> Sent: Thursday, June 25, 2009 9:03 AM<br>
> To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
> Subject: RE: [Spacewalk-list] reposync RHEL repositories on Centos<br>
> Spacewalk<br>
><br>
><br>
> <br>
><br>
> The only other thing I can think of is to use the –n(?) option to only<br>
> grab the newest RPM’s, compare against what’s on the latest DVD iso,<br>
> and then only rhnpush what’s not there into an updates channel the<br>
> same way CentOS does. <br>
><br>
> <br>
><br>
> Is there a good way to compare two rpm’s and see which one is newer?<br>
> I tried coming up with a regular expression to grab the version out of<br>
> the filename for comparison, but it is not very reliable.<br>
><br>
> <br>
><br>
> From:spacewalk-list-bounces@redhat.com<br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Shao Ming<br>
> Sent: Wednesday, June 24, 2009 9:36 PM<br>
> To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
> Subject: Re: [Spacewalk-list] reposync RHEL repositories on Centos<br>
> Spacewalk<br>
><br>
><br>
> <br>
><br>
> I am trying to avoid that. I hope to hv all reposync, be it RHEL<br>
> Centos Fedora, to be done on the same Spacewalk box. I'm sure that is<br>
> possible but I can't seem to locate the info in this list...<br>
><br>
> On Wed, Jun 24, 2009 at 8:42 PM, Wojtak, Greg<br>
> <<a href="mailto:GregWojtak@quickenloans.com">GregWojtak@quickenloans.com</a>> wrote:<br>
><br>
> Here's what I did:<br>
><br>
> On my RHEL servers (with valid rhn subscriptions), I installed and ran<br>
> reposync for the appropriate RHN repositories I needed for my<br>
> environment.  I then rhnpush'ed those - for RHEL 5 it was a total of<br>
> 5353 packages and for x86_64 it was 7000+.  I don't have any better<br>
> idea how to manage those, and I am still trying to figure out how I am<br>
> going to manage them going forward.  But at least I have a consistent<br>
> set... for now.<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a></a><br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com"><a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a></a>] On Behalf Of Alexandros<br>
> Soumplis<br>
> Sent: Wednesday, June 24, 2009 5:28 AM<br>
> To: <a href="mailto:spacewalk-list@redhat.com"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></a><br>
> Subject: Re: [Spacewalk-list] reposync RHEL repositories on Centos<br>
> 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<br>
> you<br>
> need to have a valid rhn subscription and then configure yum<br>
> 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<br>
> earlier<br>
> > e-mail. I apologise.<br>
> ><br>
> > Currently, I have a mix of Centos and RHEL boxes. I have managed to<br>
> use<br>
> > reposync to download packages for Centos and rhnpush to Spacewalk.<br>
> My<br>
> > Spacewalk is installed on a Centos.<br>
> ><br>
> > What I am having problem is wondering how to reposync with RHEL<br>
> packages?<br>
> > Do<br>
> > I create a rhel repo at /etc/yum.repos.d/? Do I need a rhn<br>
> 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<br>
> boxes<br>
> >> then<br>
> >> you need to use reposync on your spacewalk server to download<br>
> CentOS<br>
> >> packages from a CentOS repository. Reposync uses your existing yum<br>
> >> configuration and repositories. After you've downloaded the<br>
> packages you<br>
> >> can use rhnpush to push those packages into spacewalk repository.<br>
> 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<br>
> also.<br>
> >> Can<br>
> >> > someone explain how I can use the reposync to download packages<br>
> 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"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
> >> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> Spacewalk-list mailing list<br>
> >> <a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
> >> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
> >><br>
> ><br>
><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
><br>
><br>
> <br>
><br>
><br>
> plain text document attachment (ATT10565.txt)<br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com"><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a></a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></a><br>
</font>
</p>


</div></blockquote></body></html>