In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to remove redundant kernel in Ubuntu? Many novices are not very clear about this. In order to help you solve this problem, the following small series will explain it in detail for everyone. Those who have this need can come to learn. I hope you can gain something.
Step 1: View the current kernel
rew $ uname -aLinux rew 4.15.0-42-generic #45~16.04.1-Ubuntu SMP Mon Nov 19 13:02:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Current version: 4.15.0-42-generic
Step 2: View all kernels
rew $ dpkg --get-selections | grep linuxconsole-setup-linux installlibselinux1:amd64 installlibselinux1:i386 installlinux-base installlinux-firmware installlinux-generic-hwe-16.04 installlinux-headers-4.15.0-42 installlinux-headers-4.15.0-39 installlinux-headers-4.15.0-39-generic installlinux-headers-4.15.0-42-generic installlinux-headers-generic-hwe-16.04 installlinux-image-4.15.0-39-generic installlinux-image-4.15.0-42-generic installlinux-image-generic-hwe-16.04 installlinux-libc-dev:amd64 installlinux-libc-dev:i386 installlinux-modules-4.15.0-39-generic installlinux-modules-4.15.0-42-generic installlinux-modules-extra-4.15.0-39-generic installlinux-modules-extra-4.15.0-42-generic installlinux-sound-base installpptp-linux installsyslinux installsyslinux-common installsyslinux-legacy installutil-linux install
Step 3: Remove redundant kernels
All 39 versions are redundant to me, so delete them:
rew $ sudo apt-get remove \linux-headers-4.15.0-39 \linux-headers-4.15.0-39-generic \linux-image-4.15.0-39-generic \linux-modules-4.15.0-39-generic \linux-modules-extra-4.15.0-39-generic
Check again after unloading:
rew $ dpkg --get-selections | grep linuxconsole-setup-linux installlibselinux1:amd64 installlibselinux1:i386 installlinux-base installlinux-firmware installlinux-generic-hwe-16.04 installlinux-headers-4.15.0-42 installlinux-headers-4.15.0-42-generic installlinux-headers-generic-hwe-16.04 installlinux-image-4.15.0-39-generic deinstalllinux-image-4.15.0-42-generic installlinux-image-generic-hwe-16.04 installlinux-libc-dev:amd64 installlinux-libc-dev:i386 installlinux-modules-4.15.0-39-generic deinstalllinux-modules-4.15.0-42-generic installlinux-modules-extra-4.15.0-39-generic deinstalllinux-modules-extra-4.15.0-42-generic installlinux-sound-base installpptp-linux installsyslinux installsyslinux-common installsyslinux-legacy installutil-linux install
The status is deinstall, that is, it has been uninstalled. If you feel uncomfortable looking at it, you can use purge to delete it completely together with the configuration file and clean up the kernel list.
rew $ sudo apt-get purge \linux-headers-4.15.0-39 \linux-headers-4.15.0-39-generic \linux-image-4.15.0-39-generic \linux-modules-4.15.0-39-generic \linux-modules-extra-4.15.0-39-generic
Step 4: Update the system boot
Grub needs to be updated after kernel deletion to remove invalid startup entries
rev $ sudo update-grub #Select grub/grub2 according to the situation. Is it helpful to read the above? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.