My debian server has about 20 old kernels listed in grub. there taking up loads of space. I dont want to just remove the entries from grub, i want to actually remove all kernels aparat from the most recent one (it works fine). I would usually use synaptic for this but this server has no GUI.
How can i list all the installed kernel versions?
and if i list them can i just do apt-get remove?