[Spacewalk-list] Script to cleanup obsolete packages in channels

Trent Johnson tljohnsn at oreilly.com
Mon Apr 23 16:45:12 UTC 2012


Thanks Mike - I started running it yesterday on a two year old 
installation - it's still going, but a lot of cruft has been removed.

I had to make a channel called "aaaaaa" otherwise it skips the first 
channel.

Thanks,
Trent


sent from a mobile device

On 04/17/2012 05:47 PM, Michael Cronenworth wrote:
> On 04/17/2012 04:24 AM, pradelles nicolas wrote:
>> Please find attached a little script who cleanup obsolete and unused
>> packages in all channels on a spacewalk server. It is a very preliminary
>> version, so be indulgent;)
>>
>> You have to modify lines 26-29 to comply with your spacewalk
>> configuration.
>
> Thanks for this. I needed it already on my first spacewalk install when
> I messed up my channel layout. Apparently a repo sync doesn't work if
> the packages already exist on the file system. After setting up a
> channel, adding a repo, and syncing, I had packages in my channel.
> However, I had to delete the channel and set it up again. When I hit
> "Sync" my package count stayed at 0. I ran your script and ran "Sync"
> again and I had packages in my channel again.
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list