We are using the script "spacewalk-remove-old-packages -- Deletes packages 
without channel OR outdated packages from one channel" from 
https://github.com/angrox/spacewalk-api-scripts

On 5 Feb 2018, at 23:45, Matthew Madey 
<mattma...@gmail.com<mailto:mattma...@gmail.com>> wrote:

I'm looking to do some cleanup of packages in Spacewalk, but not yet sure how 
to approach the problem. I'd like to identify packages managed by Spacewalk in 
specific channels that are not installed on any servers. We have many 
developers pushing content to Spacewalk 24/7. Over time, we end up with tens of 
thousands of packages that are no longer needed in any lifecycle. I know there 
are some API's to determine what servers have a specific package installed, but 
I'm looking for the opposite.. identify packages that are not installed on any 
Spacewalk managed server.. I think that will give me a better idea of what can 
be purged.

I'm also looking for a good way to manage this in the future.. for instance, 
allowing "n" number of versions of a specific package, and programmatically 
removing the oldest versions that exceed "n" number.. has anyone attempted this 
or have advice on how I could go about doing it?
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to