angrox / spacewalk-api-scripts

Addon script for spacewalk to sync RHN packages to a local spacewalk server
GNU General Public License v3.0
67 stars 32 forks source link

Remove/skip old packages #22

Closed mmarodin closed 8 years ago

mmarodin commented 8 years ago

Hi.

There is a way to remove finally old packages from a channel? I can use spacewalk-remove-old-packages.py script to do it, but after a sync of the channel Spacewalk will download again the same old packages.

There is a way to cheat Spacewalk so it skip them during sync? :)

Please let me know, thanks. Morgan

angrox commented 8 years ago

As written before this is done by spacewalk-repo-sync. One possibilty would be to enhance the repo sync script with a feature only to sync the newest packages. A workaround could be that you have your daily sync channels, clone/merge them to a new/other channel and then remove the old packages. But this is a rather cpu intensive operation.