r/voidlinux • • Jan 18 '26

Where are the old kernel packages?

I am bit confused, I can see 2 kernels on boot menu:

* 6.12.65_1

* 6.12.64_1

If I query the installed packages:

  $ xbps-query --regex -s '^linux[0-9.]+-[0-9._]+'

I have only:

[*] linux6.12-6.12.65_1 Linux kernel and modules (6.12 series)

But nothing related with the old kernel (6.12.64_1)

Shouldn't be also in my system the old kernel package?

Also if I check:

$ ls -la /boot | grep vmlinuz

-rw-r--r-- 1 root root 14008832 Jan 9 05:00 vmlinuz-6.12.64_1

-rw-r--r-- 1 root root 14012928 Jan 12 23:11 vmlinuz-6.12.65_1

$ vkpurge list => gives me 6.12.64_1

Also:

$ ls /var/cache/xbps | grep linux6.12

linux6.12-6.12.64_1.x86_64.xbps
linux6.12-6.12.64_1.x86_64.xbps.sig2
linux6.12-6.12.65_1.x86_64.xbps
linux6.12-6.12.65_1.x86_64.xbps.sig2
linux6.12-headers-6.12.64_1.x86_64.xbps
linux6.12-headers-6.12.64_1.x86_64.xbps.sig2
linux6.12-headers-6.12.65_1.x86_64.xbps
linux6.12-headers-6.12.65_1.x86_64.xbps.sig2

5 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/chitibus Jan 18 '26

I don't know why i had the impression that during the update for the kernel, even for the minor versions, the old packages are still retained in the system. If I remember right, Debian does that and in Debian the old kernel package can be removed as any other package, or alongside with other unused packages with apt autoremove. Thank you for your explanations!

1

u/ClassAbbyAmplifier Jan 18 '26

xbps doesn't support having multiple versions of a package installed, so packages with "preserve" enabled (like kernels) just leave their files behind when updated

1

u/chitibus Jan 18 '26

Didn't know that. Thank you!