2025-01-12 Disk space

It's that time of the year again. How to get back disk space?

Open the Files application and empty the trash. (How to do this from the command line?)

Delete the cache for Debian packages:

sudo apt-get clean

Check out local caches:

ncdu .cache/

Python stuff:

pip cache purge

Also, feel free to delete other stuff in there. I just deleted a "whisper" directory containing a language model I didn't need and a "tracker3" directory containing data for the Gnome miner, I think. Also "chromium" because it's not my main browser. I don't care about its cache.

Perlbrew stuff. Find out what Perls you have installed.

perlbrew list

You aren't going to need them:

perlbrew uninstall perl-5.30.0
perlbrew uninstall perl-5.32.0

Also delete old build directories. You can probably delete all the build directories and the build logs.

ls $HOME/perl5/perlbrew/ $HOME/perl5/perlbrew/build

Go build cache:

go clean -cache

#Administration

systemd journal size
sudo journalctl --disk-usage
Archived and active journals take up 2.2G in the file system.

Ooof.

I think I'm going to go with these suggestions:

with these suggestions
# Set the maximum size of the journal logs in bytes
SystemMaxUse=200M 
# Set the number of days after which logs will be deleted
MaxRetentionSec=7d