Delete extra Ubuntu kernel to release disk space

Source: Internet
Author: User
First, use this command to view the Kernel used by the current Ubuntu system. Uname-a specific unmount method for the sudoapt-get-removelinux-headers-2.6.24-14-generic so that you can automatically delete the kernel file, you can also release disk space. Foo @ bar :~ $ Dpkg -- get-selections | greplinuxlibselinux1installlinux

First, use this command to view the Kernel used by the current Ubuntu system.


The specific uninstall method is

Sudo apt-get-remove linux-headers-2.6.24-14-generic

In this way, the kernel files can be automatically deleted and the disk space can be released.

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.