Upgrade and uninstall the ubuntu Kernel

Source: Internet
Author: User
Use apt-getdist-upgrade to find that the kernel has been upgraded. Install it directly and check/boot/grub/menu.1st to find that the previous kernel is still running. It should be based on security considerations, but since I started it normally, I don't need it anymore. Storage space. Uninstall! First, run # uname-a to display the current kernel and then use # dpkg-l | greplinux to check which kernels are installed in the current system. Then you can unmount the package. You must confirm the correct name of the unmounted package and then # apt-remove *** (use apt-get dist-upgrade to find that the kernel has been upgraded.
Direct Installation

View/boot/grub/menu.1st
It is found that the previous kernel is still in place, which should be based on security considerations.

But since I started it normally, I don't need it anymore. Storage space. Uninstall!

First, execute
# Uname-
Displays the current Kernel
Then use
# Dpkg-l | grep linux
To check which kernels are installed in the current system.

Then you can uninstall it.
Be sure to confirm the exact name of the unmounted package
Then
# Apt-remove *** (here is the exact package name)
But here it seems that it is better to add-purge to remove the residual information.

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: info-contact@alibabacloud.com 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.