Linux system old kernel method

  

After using Ubuntu for a period of time, it will be found that many kernels are installed in the system due to automatic upgrade. Like me, there are so many installations below, which caused a long startup list. Some unused ones must be deleted.

The first step is to use the following command to list all installed kernels. In the following table, the kernel file is the image. Select the package to uninstall and uninstall it with apt-get

[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

The specific uninstall method is

sudo apt-get remove linux-image-2.6.15-23-386

This can be achieved The kernel file is deleted and the disk space can be freed.

Also record a command.

uname -a

Use this command to view the kernel used by the current system.



Copyright © Windows knowledge All Rights Reserved