Page 1 of 1

[RESOLVED] Automatic removal of old packages

Published: July 2, 2021 - 3:26 PM
by elelay
Hello,

please excuse me if this topic isn't in the right category; I wasn't sure.

When importing packages with a newer version, the older ones aren't automatically removed from the WAPT server (/var/www/wapt). So, if you're not careful, they can quickly take up a lot of space. You have to remove

these packages via the console beforehand and then add the new ones.
Personally, I never think to do this with every package update, so every Monday morning I spend 2 to 3 minutes on the WAPT server removing unnecessary packages using the command line (it's faster).

Would it be possible to implement this directly in the console? Or is that something you'd prefer?

If not, I've had some fun scripting all this in Python; if you're interested, I'd be happy to share my code with you.

Sincerely.

Re: Automatic removal of old packages

Published: July 7, 2021 - 10:30 AM
by dcardon
Hello elelay,
there is a function to select and remove obsolete packages in the console, coming in the next version of the console, 2.1 Enterprise.
Denis

Re: Automatic removal of old packages

Published: July 7, 2021 - 11:12 AM
by elelay
Hello,

I'm glad this feature is planned!
In the meantime, I'm very happy to have my little cron script to do the cleaning for me. :D

Re: Automatic removal of old packages

Published: July 7, 2021 - 4:59 PM
by dcardon
Long live scripting! :-)