Some time ago, I found a script named swalk-clean-old-packages.py (and you can 
still find it out there).  I don’t recall if I had to tweak it slightly, but 
I’ve been using it successfully, in conjunction with cron, for some time.  I 
run it after each scheduled channel update.  Keeps the last couple of updates 
for each package.  You might want to give it a try.

Dimitri

From: spacewalk-list-boun...@redhat.com <spacewalk-list-boun...@redhat.com> On 
Behalf Of Matthias Gruber
Sent: Monday, October 22, 2018 9:23 AM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] Antwort: Keep Last 2 Version in Spacewalk Repo

Hi!

Nearly the same Problem here... my repo has 56 Files and my SpaceWalk-Channel, 
even after a /usr/bin/spacewalk-repo-sync  tells me 68, I also has no clue why 
and how to fix

cheers
Matthias




Von:        "Ananda Arifianto" 
<ananda.arifia...@danamon.co.id<mailto:ananda.arifia...@danamon.co.id>>
An:        "spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>" 
<spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>>
Datum:        22.10.2018 12:06
Betreff:        [Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Gesendet von:        
spacewalk-list-boun...@redhat.com<mailto:spacewalk-list-boun...@redhat.com>
________________________________



Hi All,

When we sync repository, it will add the new package that available in the 
internet repo.
It caused the size of repo bigger and bigger, is it possible to clean up the 
old packages and keep last 2 or 3 newer version?
Please advice, thank you..


Best Regards,
Ananda Arifianto

The information in this e-mail is confidential and is transmitted strictly for 
the addressee/s. If you receive this e-mail in error, please notify the sender 
and delete it immediately. Copying and/or disseminating the contents are 
prohibited. PT Bank Danamon Indonesia, Tbk. shall not be responsible for the 
accuracy or completeness of this email and any views expressed herein do not 
necessarily reflect the views of PT Bank Danamon Indonesia, 
Tbk._______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list



Persönlich haftende Gesellschafter: Harald Illy, Michael Klaus, Friedrich von 
Metzler, Emmerich Müller, Gerhard Wiesheu
Vorsitzender des Aufsichtsrats: Dr. Christoph Schücking
Sitz der Gesellschaft: Frankfurt am Main, Handelsregister-Nr. HRB 27 515

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfänger 
sein, so bitten wir Sie höflich, dies unverzüglich dem Absender mitzuteilen und 
die Nachricht zu löschen. Es ist unzulässig, die Nachricht unbefugt 
weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollständigkeit 
der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern 
können, sind die vorstehenden Ausführungen rechtlich nicht bindend. Eine 
Haftung hierfür wird ausgeschlossen.
This message is confidential. If you are not the intended recipient, we kindly 
ask you to inform the sender and delete the information. Any unauthorised 
dissemination or copying hereof is prohibited. As we cannot guarantee or assure 
the genuineness or completeness of the information contained in this message, 
the statements set forth above are not legally binding. Accordingly we cannot 
accept any liability for their contents.
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to