I have a centos server and has many kernels and the old kernels aren't deleted. I want only 3 kernels/headers to be present and want the old one to be deleted automatically. For this i did
But when i restarted the server and did
rpm -qa | grep kernel
it still showed the past five old kernels. Do i need to mnually remove it for that above changes to take place or did i go wrong somehere?