List existed kernels: rpm -q kernel
rpm -q kernel
Install yum-utils: yum install yum-utils
yum install yum-utils
Remove old kernels, leave only 2: package-cleanup --oldkernels --count=2
package-cleanup --oldkernels --count=2