Run this script without any arguments for a dry run
Run the script with root and with the argument exec
to really remove
the list of old kernels and modules printed in the dry run
-
awk
apt install gawk
- alex Burdusel and @eitch on https://askubuntu.com/a/1409370/34298
- Ruben Barkow-Kuder