How to remove unused kernels in linux

This is a short post on how to remove unused kernels in linux. I’m adding it here because I use it regularly and keep forgetting the commands – it might help you too!

Removing kernels manually
firstly, check your running kernel version


uname -a

next, show all the installed kernels:


rpm -q kernel

You can now remove each kernel manually by typing in: yum remove kernel-3.10.0 etc

Leave a Reply