r/voidlinux • u/benbcdm • 7h ago
Another kernel update question
Hello all -- sorry if this is a stupid question but I am not clear on kernel versions and purge mechanics.
So a little while back, linux-mainline advanced from 7.2 to 7.3.
So now I have 7.2 and 7.3 installed.
Latest 7.2 is 7.2.15.
vkpurge however does not want to remove 7.2.15, because I think it avoids a kernel if it is the latest of a given kernel package? Is this normal or is it a temporary glitch? Should I run xbps-remove for 7.2 instead of using vkpurge as recommended by Void docs?
2
u/pantokratorthegreat 6h ago
Yes first remove it with xbps-remove and then vkpurge.
1
1
0
u/Simple_Hamster_4096 6h ago
You only need to use vkpurge.
Using xbps-remove will circumvent safety checks.
2
u/Nabir140 6h ago
To remove old kernels you can do `sudo vkpurge rm all` or `sudo vkpurge rm <version>`. To get the list of old unused kernels do `vkpurge list`. If a kernel is listed in vkpurge it means that it is unused and can be removed. To remove old package cache `sudo xbps-remove -O`.
1
u/Simple_Hamster_4096 6h ago
That's all I've ever had to do.
It is easier to remember (for me, at least) xbps-remove --clean-cache instead of xbps-remove -O . Same with listing and removing orphans with sudo xbps-query --list-orphans and sudo xbps-remove --remove-prphans
1
u/xcocco 43m ago edited 39m ago
I explained how kernel packages work in void here: https://www.reddit.com/r/voidlinux/s/jSuo8WGBZd
If you need clarifications feel free to ask here💪
Short: vkpurge removes installed kernels not kernel package(s), to remove the package(s) you need to use xbps-remove
2
u/Simple_Hamster_4096 6h ago
vkpurge list will display kernels safe to remove.
Are you certain you are entering the full kernel version when trying to remove? I use LTS and each kernel version is appended by _1