Scroll to navigation

kthresher(8) System Manager's Manual kthresher(8)


kthresher - 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.


show a help message and exits
Config file, default is /etc/kthresher.conf
List what packages would be purged but do not perform the action, by default does not perform a dry-run.
Include the search for kernel headers, by default does not include headers.
Number of autoremovable kernels to keep, default is 1.
Purge unused kernels, by default does not purge packages.
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.
Be verbose, by default is not verbose.
Print version




Bugs and issues to be submitted via github <>.


Written by Tony Garcia <tony dot garcia at rackspace dot com>.


Additional documentation to be found via github <>.


This software is Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <>.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

November 2016 kthresher