Created
          November 16, 2015 12:29 
        
      - 
      
- 
        Save svenkrb/0c19ebeaf8a33b2fde12 to your computer and use it in GitHub Desktop. 
    One liner for ubuntu to cleanup installed kernels with exceptions 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Remove kernels and associated packages for all versions execpt meta required and versions X and Y | |
| sudo aptitude purge '~i linux-(headers|image|tools) !lts !common !X !Y' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment