dashmage / lp-charm-apt-mirror

GNU General Public License v3.0
0 stars 0 forks source link

Need support for cleaning up pool of no-longer-referenced packages #2

Closed dashmage closed 8 months ago

dashmage commented 8 months ago

We've encountered at least one environment where the apt-mirror unit grew in size until it ran out of disk.

While the charm has an option for deleting snapshots, all it does is delete the "metadata", i.e. the snapshotted "dists" directory of the mirrored repositories. It doesn't clean up the packages in the shared pool.

We need to have some sort of script or cleanup action which allows us to reclaim disk space from no-longer-used packages. It would need to clean up files in the pool which no longer have any references from any of the current snapshots.


Imported from Launchpad using lp2gh.