Removing old kernels / boot volume is low on space

I occasionally get a warning message, notifying me that my boot volume is low on space.

I have not found a way of removing old kernels automatically, and I've yet to script it, so for now this is just a reminder for me of what to do.

Check which kernels are installed

dpkg --list | grep linux-image

Remove the kernels I no longer want

apt remove --purge [name of kernel from list generated using the command above]

Author: neil

I'm Neil. By day, I run a law firm, decoded.legal, giving advice on Internet, telecoms, and tech law. This is my personal blog, so will be mostly about tech stuff, cycling, and other hobbies.

You can find me (and follow me) on Mastodon and Twitter.