List existed kernels: rpm -q kernel

Install yum-utils: yum install yum-utils

Remove old kernels, leave only 2: package-cleanup --oldkernels --count=2

 

1468429065