How to remove old kernels from Linux system

  
                

The Linux system itself is an open source system, so it can be modified during use. Only its kernel is unchanged. Only after a period of time can the Linux kernel be upgraded. After upgrading, it will leave some old useless kernels. In this article, Ubuntu system is taken as an example to introduce how to delete the old kernel in Linux system.

First, you can view the current use of the kernel which, by the command: to obtain information uname -a. For example, my desktop shows:

magc@magc-desktop:~$ uname -a

Linux magc-desktop 2.6.24-19-rt #1 SMP PREEMPT RT Thu Aug 21 02 :08:03 UTC 2008 i686 GNU/Linux

Then decide which ones need to be deleted by looking at the list of all the kernels on this machine:

Run the command: dpkg --get-selections

Copyright © Windows knowledge All Rights Reserved