Skip to content

Instantly share code, notes, and snippets.

@egobrain
Created January 31, 2014 10:36
Show Gist options
  • Save egobrain/8729807 to your computer and use it in GitHub Desktop.
Save egobrain/8729807 to your computer and use it in GitHub Desktop.
Remove all kernel except one
#!/bin/bash
zypper rm `zypper se -si 'kernel*' | grep kernel | awk '{printf("%s-%s\n",$3,$7)}' | grep -v $1 | tr "\\n" " " `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment