Created
          November 21, 2014 05:57 
        
      - 
      
- 
        Save codenamezjames/0fdea3ce368ad9fe8a08 to your computer and use it in GitHub Desktop. 
    Uninstall all but current kernal
  
        
  
    
      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
    
  
  
    
  | sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d') | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment