Code Monkey home page Code Monkey logo

kernelclean's Introduction

kernelclean

Clean old Ubuntu and Debian kernels easily.

By default purges all old kernels and related cruft, except the running and the two most recent kernels.

Usage

# interactive mode
kernelclean

# automatic mode (assume yes)
kernelclean -y

Sample run

runar@server:~$ sudo kernelclean

Running kernel:    3.13.0-43-generic 

Keeping kernels:   3.13.0-44-generic 
                   3.13.0-43-generic 

Purging packages:  linux-headers-3.13.0-39 
                   linux-headers-3.13.0-39-generic 
                   linux-headers-3.13.0-40 
                   linux-headers-3.13.0-40-generic 
                   linux-headers-3.13.0-41 
                   linux-headers-3.13.0-41-generic 
                   linux-image-3.13.0-32-generic 
                   linux-image-3.13.0-37-generic 
                   linux-image-3.13.0-39-generic 
                   linux-image-3.13.0-40-generic 
                   linux-image-3.13.0-41-generic 
                   linux-image-extra-3.13.0-32-generic 
                   linux-image-extra-3.13.0-37-generic 
                   linux-image-extra-3.13.0-39-generic 
                   linux-image-extra-3.13.0-40-generic 
                   linux-image-extra-3.13.0-41-generic 

[Enter] to continue: 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.13.0-39* linux-headers-3.13.0-39-generic*
  linux-headers-3.13.0-40* linux-headers-3.13.0-40-generic*
  linux-headers-3.13.0-41* linux-headers-3.13.0-41-generic*
  linux-image-3.13.0-32-generic* linux-image-3.13.0-37-generic*
  linux-image-3.13.0-39-generic* linux-image-3.13.0-40-generic*
  linux-image-3.13.0-41-generic* linux-image-extra-3.13.0-32-generic*
  linux-image-extra-3.13.0-37-generic* linux-image-extra-3.13.0-39-generic*
  linux-image-extra-3.13.0-40-generic* linux-image-extra-3.13.0-41-generic*

[...]

Installation

Put the file kernelclean somewhere (like /usr/local/sbin) and make sure it is executable.

License

Licensed under the permissive MIT license. Feel free!

kernelclean's People

Contributors

emning avatar

Stargazers

Anders Kringstad avatar

Watchers

 avatar James Cloos avatar Anders Kringstad avatar

Forkers

akringstad

kernelclean's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.