Learn how to use three Linux commands. uname-a check the current kernel version to avoid deleting the required version 2. dpkg -- get-selections | greplinux. in the sudoapt-getremove Kernel File, the kernel file is one of the file names obtained by the second command. This is an example provided on the Internet. The result is almost the same. Use apt-getrevmoe to delete the file.
Learn how to use three Linux commands
1. uname-a check the current kernel version to avoid deleting the desired version.
2. dpkg -- get-selections | grep linux view the linux Kernel File and select
3. sudo apt-get remove Kernel File
The kernel file is one of the file names obtained by the second command.
This is an example provided on the Internet. The result is almost the same. Then, use apt-get revmoe to delete unnecessary versions.
Foo @ bar :~ $ Dpkg -- get-selections | grep linux
Libselinux1 install
Linux-generic install
Install linux-headers-2.6.24-16
Install linux-headers-2.6.24-16-generic
Linux-headers-generic install
Deinstall linux-image-2.6.22-14-generic
Install linux-image-2.6.24-16-generic
Linux-image-generic install
Linux-libc-dev install
Deinstall linux-restricted-modules-2.6.22-14-generic
Install linux-restricted-modules-2.6.24-16-generic
Linux-restricted-modules-common install
Linux-restricted-modules-generic install
Linux-sound-base install
Deinstall linux-Ubuntu-modules-2.6.22-14-generic
Install linux-ubuntu-modules-2.6.24-16-generic
Util-linux install
Util-linux-locales install