Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

remove no longer needed Ubuntu kernels

Project Description

The rmoldkernels utility removes old. no longer used, kernels from on Ubuntu systems, thus freeing up space on /boot (or /).

The currently active kernel is kept, as is the last one installed (numeric wise), normally that would be the one that becomes active on a reboot. Any ‘older’ or intermediate kernels (those that got installed after a reboot except for the last one) will be deleted.

If ran as normal user, you will be asked for a sudo password.

The commandline handed to apt-get for removal is echoed, and you do have to confirm the removal.

You can specify a number of extra kernels to keep, these are counted from the last and do include the last one if that is not the active one.

It probably works on Debian as well, but that has not been tested as of Nov. 2013.

Report bugs at

and checkout repositories at

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ruamel.rmoldkernels-0.1.0.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Nov 11, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting