How-to-simply...

Remove old kernels in CentOS 7

  • 1 package-cleanup --oldkernels --count=2
  • N keeps current and previous kernel only, requires yum-utils installed

References