clean out old kernel versions?

Ming ming at pgp.cool
Sun Mar 7 17:57:22 UTC 2021


On Sun, Mar 07, 2021 at 09:43:43AM -0800, Dave Stevens wrote:
> On Mon, 8 Mar 2021 01:26:17 +0800
> Ming <ming at pgp.cool> wrote:
> 
> > 147?
> > Why do you have so many linux kernel packages?
> 
> I suppose autoremove isn't working but that's why I asked.
> 

For several of my computers with Debian installed (I have rarely used
Ubuntu recently, but I think it is similar), after running apt
autoremove, only two versions of the kernel will remain.
At this time, use the above command to query, there should be only three
lines starting with ii (in addition to the two versions of the kernel
package, there is also a meta-package).

Back to your question, if you confirm that these kernels are useless,
you should be able to use apt purge to completely remove them, just use
my command above to find the names of these kernels.

**Be careful not to remove the kernel you are using (use uname -r to view
the kernel version currently in use).**

-- 
OpenPGP fingerprint: 3C47 5977 4819 267E DD64  C7E4 6332 5675 A739 C74E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210308/9b6a3655/attachment.sig>


More information about the ubuntu-users mailing list