First Commit
This commit is contained in:
1
rm_all_old_kernels
Executable file
1
rm_all_old_kernels
Executable file
@ -0,0 +1 @@
|
||||
export KERNEL="$(uname -r | grep -Po '([0-9\.\-]*[0-9])?')"; dpkg --get-selections | grep -E "linux-(header|image).*" | grep -iw install | sort | grep -v "$KERNEL" | grep -v "lts" | sed 's/install//g' | xargs dpkg -P
|
Reference in New Issue
Block a user