dotfiles/tools/remove_old_kernels

4 lines
107 B
Text
Raw Normal View History

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