Fork me on GitHub
Suzf  Blog

How-to: Delete the redundant kernel after CentOS update

License: Attribution-NonCommercial-ShareAlike 4.0 International

本文出自 Suzf Blog。 如未注明,均为 SUZF.NET 原创。


First method:
1. the kernel that is being used in the system:
#uname -r

2. query system in all of the kernel:
#rpm -qa | grep kernel

3. remove the kernel you want to remove:
(eg, in my system, I want to delete the kernel of kernel-2.6.32-573.1.1.el6.x86_64, and I need to delete all the kernel-2.6.32-573.1.1.el6.x86_64's words.
#yum remove kernel-2.6.32-573.1.1.el6.x86_64

4. after the restart angd then you can see that the kernel was deleted, while the excess of the startup items are automatically deleted.

Second method:
Manually modify the /etc/grub.conf to remove the extra items.


「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」

Suzf Blog

(๑>ڡ<)☆ 谢谢 ~