r/voidlinux • u/gijsyo • 26d ago
Running Linux 7.3 but got update for 7.2
Hi all,
I'm running Linux-mainline, and recently got on the 7.3 kernel. Yesterday I got an update for the 7.2 line, and that was a little unexpected. I haven't run vkpurge yet because I'm not sure what the right course of action is here. Any clues would be appreciated :)
4
Upvotes
4
u/chibiace 26d ago
it'll update previous kernel versions you have installed. gotta remove them to stop the updates.
the default boot entry should be the highest i believe.
then you go through and purge.
good to keep at least one older known working kernel on hand just in case.
2
u/Defiant-Spring-2848 26d ago
Same as you, I'm running linux-mainline with linux (and linux-headers) set to ignorerepo entries in xbps.d config per the kernel section of the void handbook. I'm getting 6.18, 7.2, and 7.3 updates right now. I'm sticking to 7.3 as my main kernel mostly due to using btrfs volumes, and the performance enhancements 7.3 brings to that.
sudo vkpurge list shows that all kernels I'm not currently running would be removed (e.g. 6.18 and 7.2 series, as well as the 7.3.0_1 I just upgraded from.)
I would say what we're experiencing is completely expected, and no course of action is needed provided 7.3 is working for you.
2
u/Specialist-Dog-501 25d ago
I have seen yesterday a raise of RAM-full and system-freeze alerts here on reddit for the newest 7.3.x kernels- can anyone confirm or deny this? This was on arch system I believe.
4
u/xcocco 23d ago edited 23d ago
vkpurge doesn't remove packges, it only lists installed kernels (not the one you booted into though otherwise it would allow you to remove the kernel you are literally currently running on) and allows you to remove one or more of those kernels (and headers if you have them), the package(s) of the kernel are still handled by xbps. This said, this can help you understand better how the packages for the kernel are organized: linux-mainline is a package that "points" to the mainline linux package, for example: right now the package linux-mainline points to the package linux7.3, when they will release linux 7.4 the package linux-mainline will point to the package linux7.4. In your case this means that linux-mainline was pointing to linux7.2, when you called
sudo xbps-install -Suit made linux-mainline point to linux7.3, the package linux7.2 was still installed, usually once I updated the kernel I callsudo xbps-remove -oOORto remove orphans and cache recursively, this means that once linux-mainline points to linux7.3, the package linux7.2 is now an orphan and can be removed with xbps-remove -oOOR so that no more updates for the 7.2 line are being fetched the next time you trigger an update. I hope I explained it clearly and that it helps you understand this betterπͺπͺ2
u/benbcdm 26d ago
yeah, kernels are not auto-removed with updates so most likely you still had 7.2 as well as 7.3?
gotta purge manually, or you can do your own little post-kernel install clean-up scripts, works very well with xbps, see void docs:
Void Linux provides directories for kernel hooks in/etc/kernel.d/{pre-install,post-install,pre-remove,post-remove}.
2
u/furryfixer 26d ago
I made a small script years ago that may help clear some confusion. xbps-remove is needed in many cases, not just vkpurge. The script is here:
https://github.com/furryfixer/vkinfo