Main Configuration
/etc/kthresher.conf
Purge unused kernels
kthresher [-h]
[-c
FILE]
[-d]
[-H]
[-k
[N]]
[-p]
[-s]
[-v]
[-V]
kthresher is a utility to remove kernel packages that are marked as a candidate for autoremoval, such as those installed via unattended-upgrades or meta packages.
By default the running kernel, the latest kernel and manual installations are marked to 'Never Auto Remove'. kthresher then will not attempt to remove those packages.
When no option is passed to kthresher the list of available kernels for autoremoval will be printed.
-h, --help
show a help message and exits
-c FILE, --config FILE
Config file, default is /etc/kthresher.conf
-d, --dry-run
List what packages would be purged but do not perform the action, by default does not perform a dry-run.
-H, --headers
Include the search for kernel headers, by default does not include headers.
-k N, --keep N
Number of autoremovable kernels to keep, default is 1.
-p, --purge
Purge unused kernels, by default does not purge packages.
-s, --show-autoremoval
Show kernel packages available for autoremoval. When defined, overrides any other action coming from the configuration file(s). This is the default action when no other action is defined.
-v, --verbose
Be verbose, by default is not verbose.
-V, --version
Print version
Main Configuration
/etc/kthresher.conf
Overriding configs
/etc/kthresher.d
Unchanged in 3 releases since Debian 11 (Bullseye).