Get the App
SLTechnology News&Howtos  ›  Servers  › 

How Ubuntu clears useless kernels

Shulou Source: shulou.com Published: 2022-06-01 04:11:27 10月28日 Update

Ubuntu how to remove useless kernel, in response to this problem, this article details the corresponding analysis and solution, hoping to help more friends who want to solve this problem find a simpler and easier way.

As the system upgrades, useless kernels are slowly accumulating more and more, so it is necessary to clean them regularly. Here is the cleaning process.

Enter at the terminal:

dpkg --get-selections|grep linux

You will get a list of your system's kernels:

As can be seen, the kernel consists of 2.6.35-22, 2.6.35-27, and 2.6.35-28.

You can check the kernel version you are currently using with the following command:

uname -a

After checking, you can clean up the rest of the useless kernel:

sudo apt-get remove linux-headers-2.6.35-22-genericsudo apt-get remove linux-headers-2.6.35-27-generic

Of course, you don't have to do so much, because Ubuntu-Tweak has this feature inside.

You can open Tweak-Package Clean-Up-Remove Excess Kernel

About Ubuntu how to clear the useless kernel questions to share here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

Tags: Kernel questions more system help solution easy easy No content function you can pass commands guys Partners methods versions knowledge articles Terminal Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia MariaDB Shulou Information Shulou Technology OPPO Reno