Keeping CentOS installed kernels clean and tidy! Add this to your yum.conf installonly_limit=2 Then run: package-cleanup --oldkernels --count=2