Article Title: how to delete the old kernel of the UbuntuLinux Operating System. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After using Ubuntu for a while, you will find that many kernels are installed in the system due to automatic upgrades. As I have installed so many of the following, this leads to a long startup list. You must delete unnecessary items.
First, use the following command to list all installed kernels. In the following table, the kernel files with images are used. Select the package to be uninstalled and use apt-get to uninstall the package.
[Tc @ ibm: ~] $ Dpkg -- get-selections | grep linux
Libselinux1 install
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
Deinstall linux-image-2.6.15-28-686
Install linux-image-386
Linux-kernel-headers install
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
Deinstall linux-restricted-modules-2.6.15-28-686
Install linux-restricted-modules-386
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
In this way, the kernel files can be automatically deleted and the disk space can be released.
In addition, you need to record a command.
Uname-
Use this command to view the Kernel used by the current system.