Discussion:
[Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Ananda Arifianto
2018-10-22 09:54:17 UTC
Permalink
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.
Matthias Gruber
2018-10-22 13:23:26 UTC
Permalink
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" <***@danamon.co.id>
An: "spacewalk-***@redhat.com" <spacewalk-***@redhat.com>
Datum: 22.10.2018 12:06
Betreff: [Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Gesendet von: spacewalk-list-***@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-***@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.
Robert Paschedag
2018-10-22 13:42:46 UTC
Permalink
_______________________________________________
Spacewalk-list mailing list
Spacewalk-***@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
Dimitri Yioulos
2018-10-22 13:55:03 UTC
Permalink
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-***@redhat.com <spacewalk-list-***@redhat.com> On Behalf Of Matthias Gruber
Sent: Monday, October 22, 2018 9:23 AM
To: spacewalk-***@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" <***@danamon.co.id<mailto:***@danamon.co.id>>
An: "spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>" <spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>>
Datum: 22.10.2018 12:06
Betreff: [Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Gesendet von: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@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-***@redhat.com<mailto:Spacewalk-***@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.
Dimitri Yioulos
2018-10-22 14:12:11 UTC
Permalink
Sorry, the script is actually named spacewalk-clean-old-packages.py.

From: spacewalk-list-***@redhat.com <spacewalk-list-***@redhat.com> On Behalf Of Dimitri Yioulos
Sent: Monday, October 22, 2018 9:55 AM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] Antwort: Keep Last 2 Version in Spacewalk Repo

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-***@redhat.com<mailto:spacewalk-list-***@redhat.com> <spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>> On Behalf Of Matthias Gruber
Sent: Monday, October 22, 2018 9:23 AM
To: spacewalk-***@redhat.com<mailto:spacewalk-***@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" <***@danamon.co.id<mailto:***@danamon.co.id>>
An: "spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>" <spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>>
Datum: 22.10.2018 12:06
Betreff: [Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Gesendet von: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@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-***@redhat.com<mailto:Spacewalk-***@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.
Ananda Arifianto
2018-10-23 06:59:48 UTC
Permalink
Hi Dimitri,

Thank you for information, I’ve configured it on my spacewalk server.
https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-remove-old-packages

Best Regards,
Ananda Arifianto

From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Dimitri Yioulos
Sent: Monday, October 22, 2018 9:12 PM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] Antwort: Keep Last 2 Version in Spacewalk Repo

Sorry, the script is actually named spacewalk-clean-old-packages.py.

From: spacewalk-list-***@redhat.com <spacewalk-list-***@redhat.com> On Behalf Of Dimitri Yioulos
Sent: Monday, October 22, 2018 9:55 AM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] Antwort: Keep Last 2 Version in Spacewalk Repo

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-***@redhat.com<mailto:spacewalk-list-***@redhat.com> <spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>> On Behalf Of Matthias Gruber
Sent: Monday, October 22, 2018 9:23 AM
To: spacewalk-***@redhat.com<mailto:spacewalk-***@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" <***@danamon.co.id<mailto:***@danamon.co.id>>
An: "spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>" <spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>>
Datum: 22.10.2018 12:06
Betreff: [Spacewalk-list] Keep Last 2 Version in Spacewalk Repo
Gesendet von: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@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-***@redhat.com<mailto:Spacewalk-***@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.
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.
Loading...