Can i automatically clean cache of apt archives?

Love this. I love time savers also. But like @Brian_Masinick I prefer the control/timing.

My alias of choice is: upd for:

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove && sudo apt autoclean

By default, apt stores to disk not ram. But you can clean ram manually also using:

sync; echo 3 > /proc/sys/vm/drop_caches

This immediately frees up RAM (note: this will increase disk I/O and slow down applications that need to reload data into cache afterward).

It’s an option, but with 16 GB of RAM, you really should not have too much space issues.

2 Likes