Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

#11 Post by artytux »

too slow typing, deleted post.
" Outside the square , inside the cube "

User avatar
DukeComposed
Posts: 1320
Joined: Thu Mar 16, 2023 1:57 pm

Re: Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

#12 Post by DukeComposed »

RallyDarkstrike wrote: Sat Aug 10, 2024 9:12 pm
Thanks for the reply. MX Cleanup is only showing one kernel that can be removed though....but the Terminal command I mentioned in my first post implies that there are like...15 kernels that I could remove?

Copy/paste from that Terminal window:

Code: Select all

(11:04 PM)darkstrike @ minidarkstrike ~ $ --> dpkg --list | grep linux-image
[snip]
rc  linux-image-6.1.0-18-amd64               6.1.76-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-20-amd64               6.1.85-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-21-amd64               6.1.90-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-22-amd64               6.1.94-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
ii  linux-image-6.1.0-23-amd64               6.1.99-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
ii  linux-image-6.4.0-1mx-ahs-amd64-unsigned 6.4.4-1~mx23+1                          amd64        Linux 6.4 for 64-bit PCs
ii  linux-image-amd64                        6.1.99-1                                amd64        Linux for 64-bit PCs (meta-package)
Did you notice that the only kernel suggested for removal in MX Cleanup has an entry in "dpkg -l" that starts with "ii"?

User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Re: Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

#13 Post by RallyDarkstrike »

artytux wrote: Sat Aug 10, 2024 9:20 pm too slow typing, deleted post.
No worries, thanks anyway!
Image

User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Re: Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

#14 Post by RallyDarkstrike »

DukeComposed wrote: Sat Aug 10, 2024 9:30 pm
RallyDarkstrike wrote: Sat Aug 10, 2024 9:12 pm
Thanks for the reply. MX Cleanup is only showing one kernel that can be removed though....but the Terminal command I mentioned in my first post implies that there are like...15 kernels that I could remove?

Copy/paste from that Terminal window:

Code: Select all

(11:04 PM)darkstrike @ minidarkstrike ~ $ --> dpkg --list | grep linux-image
[snip]
rc  linux-image-6.1.0-18-amd64               6.1.76-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-20-amd64               6.1.85-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-21-amd64               6.1.90-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-6.1.0-22-amd64               6.1.94-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
ii  linux-image-6.1.0-23-amd64               6.1.99-1                                amd64        Linux 6.1 for 64-bit PCs (signed)
ii  linux-image-6.4.0-1mx-ahs-amd64-unsigned 6.4.4-1~mx23+1                          amd64        Linux 6.4 for 64-bit PCs
ii  linux-image-amd64                        6.1.99-1                                amd64        Linux for 64-bit PCs (meta-package)
Did you notice that the only kernel suggested for removal in MX Cleanup has an entry in "dpkg -l" that starts with "ii"?
I didn't until you mentioned it, actually....I'm a power user compared to most folks, but I'm not a Linux expert so I'm afraid I don't know what those "rr, ii, ic' abbreviations stand for?

I'm assuming this means I can safely delete everything marked 'rc' or 'ic' then?
Image

User avatar
DukeComposed
Posts: 1320
Joined: Thu Mar 16, 2023 1:57 pm

Re: Kernel confusion...two different lists of installed kernels? Easy way to uninstall old kernels?

#15 Post by DukeComposed »

RallyDarkstrike wrote: Sat Aug 10, 2024 9:39 pm I didn't until you mentioned it, actually....I'm a power user compared to most folks, but I'm not a Linux expert so I'm afraid I don't know what those "rr, ii, ic' abbreviations stand for?

I'm assuming this means I can safely delete everything marked 'rc' or 'ic' then?
"man dpkg-query" is going to be useful here. Remember that kernels end up under /boot, so if you don't have fifteen different /boot/vmlinuz files on your machine, you don't have fifteen kernels to remove. What you're seeing is leftover config files from previous kernels you've already installed, used, and then deleted after they were upgraded.

Post Reply

Return to “MX Help”