Centos 清理旧内核

 •  Filed under centos7, centos, linux

Centos 7

sudo yum install yum-utils -y && sudo package-cleanup --oldkernels --count=1 -y

Centos 8

dnf remove --oldinstallonly --setopt installonly_limit=1