best ways to find and remove unneeded packages/snaps and...
M. Fioretti
mfioretti at nexaima.net
Wed Oct 22 17:17:26 UTC 2025
On Wed, Oct 22, 2025 11:48:25 AM -0400, Little Girl wrote:
> I'm falling over on that since I'm giving you more than one solution,
> but you could probably combine them together.
Of course, no problem, and thanks for any suggestion.
> I believe that Snap cleans up after itself whenever it updates...
That's not my experience, and I've seen several mention of the same
issue online, i.e. requests of how to clean up manually old snaps,
snaps cache etc.
> These two commands will do that and you can change the 30 days I used
> for the examples to any number:
>
> grep "Install" /var/log/apt/history.log | awk -v date="$(date
> --date='-30 days' +%Y-%m-%d)" '{if ($1 >= date) print}'
>
> grep " install " /var/log/dpkg.log | awk -v date="$(date --date='-30
> days' +%Y-%m-%d)" '{if ($1 >= date) print}'
Thanks for this and the sudo apt tips, I was already doing many of them but
not all.
Marco
More information about the ubuntu-users
mailing list