标签:
$ rpm -q kernel
## need Install yum-utils ##
## Package-cleanup set count as how many old kernels you want left ##
$ sudo package-cleanup --oldkernels --count=2
Edit /etc/yum.conf and set installonly_limit:
标签:
原文地址:http://www.cnblogs.com/LicwStack/p/5809074.html