首先就是使用如下命令,列出所有安装的内核,下表中,带有image的就是内核文件。从中选择要卸载的包,用apt-get来卸载:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| [tc@ibm:~]$ dpkg --get-selections| grep linux libselinux1 install linux-386 install linux-image-2.6.15-23-386 install linux-image-2.6.15-27-386 install linux-image-2.6.15-27-686 install linux-image-2.6.15-28-386 install linux-image-2.6.15-28-686 deinstall linux-image-386 install linux-kernel-headers install linux-restricted-modules-2.6.15-23-386 install linux-restricted-modules-2.6.15-27-386 install linux-restricted-modules-2.6.15-27-686 install linux-restricted-modules-2.6.15-28-386 install linux-restricted-modules-2.6.15-28-686 deinstall linux-restricted-modules-386 install linux-restricted-modules-common install linux-sound-base install util-linux install |
sudo apt-get remove linux-image-2.6.15-23-386 |
另外还要记录一个命令。
uname -a |