Subj : Re: Cleaning up stale logs in Bookworm To : All From : Knute Johnson Date : Mon Sep 15 2025 07:37:25 On 9/14/25 15:04, bp@www.zefox.net wrote: > The Natural Philosopher wrote: >> Are these old style logs or the dreaded systemd? >> > > This is a systemd machine, but after looking around in response to > suggestions made above it seems less than 5 MB is used by journals. > That's not enough to matter. > > Evidently I've just added too many packages. > > Is there some way to coax the Add/Remove Programs application > to list installed packages, ideally by size? Then I can clean > house manually. The chromium browser will likely be the first > to go 8-) > > Thanks to all for replying, and apologies for the misguided question! > > bob prohaska > Edit /etc/systemd/journald.conf file to enable SystemMaxUse and set it equal to some value that will give you enough but not too much logs. I use 128M. If you have files building up in /var/log, every month I delete all the .gz archived logs. This is an example script: #!/bin/bash echo "delete-old-logs" rm -v /var/log/*.gz rm -v /var/log/apache2/*.gz rm -v /var/log/apt/*.gz rm -v /var/log/cups/*.gz rm -v /var/log/lightdm/*.gz rm -v /var/log/unattended-upgrades/*.gz Change or add to the list above according to you actual needs. 8GB if you have a desktop installed is probably a little small for Bookworm. I tell my employer he needs to use a 16GB uSD for Bookworm with a desktop. 8GB was fine on Buster but just isn't enough any more. -- Knute Johnson --- MBSE BBS v1.1.2 (Linux-x86_64) * Origin: A noiseless patient Spider (3:633/280.2@fidonet) .