Skip to content
Snippets Groups Projects

Clean Kernels

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Ben Sjoberg
    Edited
    clean_kernels.sh 173 B
    #!/bin/bash
    purge-old-kernels -y
    apt-mark showmanual | egrep '^linux-(headers|gce-headers|modules|modules-extra|image)-[0-9]' | xargs -r apt-mark auto
    apt-get autoremove -y
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment