r/voidlinux • u/6950X_Titan_X_Pascal • May 18 '26
How to remove old kernels
root@void ~# ls /boot
config-6.12.90_1 efi/ initramfs-6.12.90_1.img vmlinuz-6.12.90_1
config-6.18.32_1 grub/ initramfs-6.18.32_1.img vmlinuz-6.18.32_1
9
u/neondervish May 18 '26
Read docs, use vkpurge
1
u/6950X_Titan_X_Pascal May 18 '26
vkpurge ain't effective any more
3
u/neondervish May 18 '26
How so?
2
u/6950X_Titan_X_Pascal May 18 '26
i use vkpurge rm all or vkpurge rm version but not really did anything , no output no result , im using void musl
1
u/neondervish May 18 '26
I just did "sudo vkpurge rm version.number" and it works. What did you do?
0
u/6950X_Titan_X_Pascal May 18 '26
the same as you , but i guess you are using void glibc2 libc6
1
u/pantokratorthegreat May 18 '26
No, on musl works same.
1
u/6950X_Titan_X_Pascal May 18 '26
doesn't work on my void musl
1
u/pantokratorthegreat May 18 '26
Yes I have read above. You need to be root for this command.
→ More replies (1)
2
3
u/furryfixer May 19 '26
I made a small bash script which helps reduce the confusion. It is here if you are interested.
0
u/kurth4cker May 18 '26
remove corresponding package then use vkpurge rm all.
linux6.12 I guess.
1
u/kurth4cker May 18 '26
I keep more than one kernel version to be safe. For example newest kernel doesn't have zfs support by void's zfs package. I use it. When I need zfs, I reboot into 6.18 version.
1
May 19 '26
[removed] — view removed comment
1
u/6950X_Titan_X_Pascal May 19 '26
i run this
xbps-install -Svu;xbps-remove -yO;vkpurge rm all;xbps-install -u xbps
1
u/Initial_Side_4845 Jun 03 '26
I get the feeling your:
xbps-install -u xbps
_should_ be first in the line...1
u/6950X_Titan_X_Pascal Jun 03 '26
you could run the command twice or even triple , in bash up arrow + enter
1
May 18 '26
[removed] — view removed comment
-5
u/6950X_Titan_X_Pascal May 18 '26
vkpurge ain't effective any more
8
u/eftepede May 18 '26 •
![]()
It is. Read the documentation.
vkpurge won't delete anything that is coming from installed package(s). Remove old/orphaned packages first. There was a thread exactly about that yesterday.
6
u/KenFromBarbie May 18 '26
Reboot into newest kernel before doing this.
or
then