Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete the old Ubuntu Linux kernel

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to delete the old Ubuntu Linux kernel". In the daily operation, I believe many people have doubts about how to delete the old Ubuntu Linux kernel. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to delete the old Ubuntu Linux kernel"! Next, please follow the editor to study!

After using Ubuntu Linux for a while, you will find that many kernels have been installed in the system due to automatic upgrade. Like me, I actually installed so many of the following, which caused a long startup list. Some unused ones must be deleted. The method to delete the old Ubuntu Linux kernel:

The first step is to use the following command to list all installed kernels. In the following table, the kernel file with image is used. Select the package to uninstall and use apt-get to uninstall it

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 unloading method is

Sudo apt-get remove linux-image-2.6.24-16-generic

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

This enables the automatic deletion of kernel files and frees up disk space.

There is also a command to record.

Uname-a

Use this command to view the kernel used by the current system.

After uninstalling, there are options in the startup menu, so we need to modify the startup menu

The method is as follows: open menu.lst with the command

Sudo gedit / boot/grub/menu.lst

Then find the unwanted menu to delete it, and also note that remember to change the value of default, modify the default startup item!

I hope these methods of deleting the old Ubuntu Linux kernel will be helpful to you.

At this point, the study on "how to delete the old kernel of Ubuntu Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report