CentOS – Delete old kernels

How to delete old kernels and keep only the last 2.

yum install yum-utils
package-cleanup –oldkernels –count=2

Bookmark the permalink.

Comments are closed.