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.

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.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Shao Ming
Sent: Wednesday, June 24, 2009 9:36 PM
To: [email protected]
Subject: Re: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk

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...
On Wed, Jun 24, 2009 at 8:42 PM, Wojtak, Greg 
<[email protected]<mailto:[email protected]>> wrote:
Here's what I did:

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.

-----Original Message-----
From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Alexandros Soumplis
Sent: Wednesday, June 24, 2009 5:28 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Spacewalk-list] reposync RHEL repositories on Centos Spacewalk

Hi!

Ok, i understand. Well I do not use any RHEL clients on my spacewalk
infrastructure to be more helpful but I am more than convinced that you
need to have a valid rhn subscription and then configure yum appropriately
to connect to rhn repos as well. However it would be better if someone
else on the list with rhel client can shred more light :-)



> Hi Soumplis,
>
> thanks for the quick reply. I think I was not too clear in my earlier
> e-mail. I apologise.
>
> Currently, I have a mix of Centos and RHEL boxes. I have managed to use
> reposync to download packages for Centos and rhnpush to Spacewalk. My
> Spacewalk is installed on a Centos.
>
> What I am having problem is wondering how to reposync with RHEL packages?
> Do
> I create a rhel repo at /etc/yum.repos.d/? Do I need a rhn subscription
> account? I'm lost on this part.
>
> thanks
> Shao Ming
>
>
> 2009/6/24 Alexandros Soumplis <[email protected]<mailto:[email protected]>>
>
>> I think you make a mistake. As long as your clients are CentOS boxes
>> then
>> you need to use reposync on your spacewalk server to download CentOS
>> packages from a CentOS repository. Reposync uses your existing yum
>> configuration and repositories. After you've downloaded the packages you
>> can use rhnpush to push those packages into spacewalk repository. There
>> are lots of information on the wiki and on this list archives.
>>
>>
>>
>> > Hi,
>> >
>> > just started on spacewalk and need some answers/helps.
>> >
>> > I have manged to to create Software channels for my Centos 5.x
>> clients. I
>> > also have a few RHEL boxes and hope to point them to spcewalk also.
>> Can
>> > someone explain how I can use the reposync to download packages from
>> rhn
>> > and
>> > push them to spacewalk?
>> > I do not have any 'rhel' repoid in my Centos install.
>> >
>> > thanks
>> > Shao Ming
>> > _______________________________________________
>> > Spacewalk-list mailing list
>> > [email protected]<mailto:[email protected]>
>> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> [email protected]<mailto:[email protected]>
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>


_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to