[RESOLVED] Automatic removal of old packages
Published: July 2, 2021 - 3:26 PM
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.
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.