Fork me on GitHub
Suzf  Blog

Tag Kernel

How-to: Update the Linux kernel

上周有同学问我Linux 如何升级内核, 后来工作之后接触到的是Debian, 内核基本上都是最新的 3.x.x 升级内核也就很简单了, 直接从源里就更新了。趁周末有空的时候我也搞一下, 以备以后工作之需。

本文适用于CentOS 6.X,亲测可行,估计也适用于其他Linux发行版。

How-to: Delete the redundant kernel after CentOS update

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.