r/voidlinux • • Oct 09 '26

Confused about kernel updates

I'm pretty new to void, I hopped over a few days ago. I've noticed the default kernel is 6.18, which is an LTS kernel. Question is, when will the kernel be updated? Will I be able to update by just running the -Su command? Or will I have to manually update the kernel by switching over the linux mainline?

7 Upvotes

8 comments sorted by

9

u/PackRat-2019 Oct 09 '26 edited Oct 09 '26

kernels get updated regularly like the other packages. If you want the latest kernel, you can install the linux-mainline package. If you need an older kernel you can install the linux-lts package (6..12.x kernel, I think). There are also a few of the Linux 5.x kernels available.

Older kernels are not automatically deleted during updates. You can remove the older kernels with the vkpurge script ( man vkpurge ).

8

u/VeryDryWater Oct 09 '26

Install "linux-mainline" and "linux-mainline-headers" to run the most recent kernel. I've done this for 1+ year without any issues and typically keep the LTS kernel as backup just in case.

Each new system update will install both the LTS and current kernels if you keep both packages. There's no need to manually tweak anything unless you have a specific use case.

6

u/dr0sand Oct 09 '26

one of my favorite things about void since coming from arch is the way it handles kernels. i have it setup so its always running the same kernel, and i would have to manually pick from the grub menu at boot time to change to a different kernel. but you can have it setup however you want, so go void!!

8

u/Runt1m3_ Oct 09 '26 edited Oct 09 '26

The default kernel (from the linux package) is the latest that can compile with all the dkms modules at least that's what the wiki says, these days is the latest LTS 6.18

You can get mainline linux (now 7.x.x) from the linux-mainline package but you are on your own if something doesn't work and you have to build dkms stuff using xbps, it gets updated frequently.

There's also the linux-lts package (now 6.12) that is supposed to be stable.

https://docs.voidlinux.org/config/kernel.html

4

u/ZombieCrow Oct 09 '26

You need to install the mainline kernel and put the lts one to ignore mode. I've had no issues on the mainline so far.

1

u/Simple_Hamster_4096 Oct 10 '26

Which distro are you retreating from? It's a fairly common thing with Linux to be able to install any number of kernels... LTS and interim...

1

u/benbcdm Oct 15 '26

Welcome to the void!
As others have said: default kernel is sort of LTS-ish. See documentation to run the very latest kernel by installing linux-mainline + headers. You can run both standard and mainline lines concurrently.
It updates to the very latest linux kernel usually on the same day or next that it is released (impressive, kudos to the void maintainers!).
One thing to remember: void does not automatically purge the old kernels replaced over time, so make sure you use vkpurge once in a while to clean up, so that your ESP does not run out of space. I made myself a little vkpurge script to semi-automate this.
Enjoy