0x7e CENTOS - REMOVE OLD KERNELS

List existed kernels: rpm -q kernel

Install yum-utils: yum install yum-utils

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

centos linux kernel