How to remove old kernels on Redhat/Centos/Fedora to free up boot partition

## Install yum utils ##
yum install yum-utils

## Package-cleanup set count as how many old kernels you want left ##
package-cleanup –oldkernels –count=2