Fedora Kernels and Package Cleanup

If you want to clean off old kernels on your system, do this as root:

Change /etc/yum.conf –

find this:
installonly_limit=3

change to:
installonly_limit=2

save

Next, run ‘package-cleanup –oldkernels’

This will remove old kernel and kernel-devel packages based on the value of the
‘installonly_limit=’ option.

This will keep two kernels installed at any one time instead of three. When you update
your system, you’ll get the new kernel, and keep the one you are currently running.
This will keep things trimmed down space wise, especially if you are using a netbook or
laptop.