For old Linux users, if a new version of the Linux kernel is released, how can you delete the old Ubuntu Linux kernel? I hope this article will help you learn about the Linux kernel. 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.
Admingu @ andy :~ $ Dpkg -- get-selections | grep Linux
- libseLinux1 install
- Linux-generic install
- Linux-headers-2.6.24-16 install
- Linux-headers-2.6.24-18 install
- Linux-headers-2.6.24-18-generic install
- Linux-headers-2.6.24-19 install
- Linux-headers-2.6.24-19-generic install
- Linux-headers-generic install
- Linux-image-2.6.24-16-generic deinstall
- Linux-image-2.6.24-18-generic install
- Linux-image-2.6.24-19-generic install
- Linux-image-generic install
- Linux-libc-dev install
- Linux-restricted-modules-2.6.24-16-generic deinstall
- Linux-restricted-modules-2.6.24-18-generic install
- Linux-restricted-modules-2.6.24-19-generic install
- Linux-restricted-modules-common install
- Linux-restricted-modules-generic install
- Linux-sound-base install
- Linux-ubuntu-modules-2.6.24-16-generic deinstall
- Linux-ubuntu-modules-2.6.24-18-generic install
- Linux-ubuntu-modules-2.6.24-19-generic install
- util-Linux install
- util-Linux-locales install
The specific uninstall method is
Sudo apt-get remove Linux-image-2.6.24-16-generic
Sudo apt-get remove Linux-headers-2.6.24-16-generic
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.
After uninstallation, there are other options in the Start menu, so we need to modify the Start menu,
Run the following command to open menu. lst:
Sudo gedit/boot/grub/menu. lst
Find the unnecessary menu and delete it. Remember to modify the default value and the default startup Item! In this way, the old Linux kernel is successfully deleted.
- Teach you how to set Linux Startup Encryption
- Will you become a GNU/Linux User?
- Linux network operation commands
- Best Solution: Linux hard disk partitioning
- Brief Introduction to Linux Application