dotfiles/tools/remove_old_kernels
2015-02-28 19:27:23 +01:00

3 lines
107 B
Bash
Executable file

#!/bin/bash
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)