The kernel and kernel headers are mismatching

I have installed the latest version of linux kernel and kernel-headers, but their versions differ:


I asked chatgpt about it, it said it wasn’t okay, the kernel and kernel’s headers should match.

Hi,

Nah, it’s OK. For kernel 6.12.8, the kernel-header package would be 6.12.4

$ dnf list installed kernel*
Mise à jour et chargement des dépôts :
 Fedora 41 - x86_64 - Updates                                                                                           100% |  28.4 KiB/s |  24.9 KiB |  00m01s
 Fedora 41 - x86_64 - Updates                                                                                           100% |   2.3 MiB/s |   2.8 MiB |  00m01s
Dépôts chargés.
Paquets installés
kernel.x86_64                                  6.8.7-300.fc40  updates
kernel.x86_64                                  6.12.6-200.fc41 updates
kernel.x86_64                                  6.12.8-200.fc41 updates
kernel-core.x86_64                             6.8.7-300.fc40  updates
kernel-core.x86_64                             6.12.6-200.fc41 updates
kernel-core.x86_64                             6.12.8-200.fc41 updates
kernel-longterm.x86_64                         6.6.70-200.fc41 copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6
kernel-longterm-core.x86_64                    6.6.70-200.fc41 copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6
kernel-longterm-modules.x86_64                 6.6.70-200.fc41 copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6
kernel-longterm-modules-core.x86_64            6.6.70-200.fc41 copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6
kernel-longterm-modules-extra.x86_64           6.6.70-200.fc41 copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6
kernel-modules.x86_64                          6.8.7-300.fc40  updates
kernel-modules.x86_64                          6.12.6-200.fc41 updates
kernel-modules.x86_64                          6.12.8-200.fc41 updates
kernel-modules-core.x86_64                     6.8.7-300.fc40  updates
kernel-modules-core.x86_64                     6.12.6-200.fc41 updates
kernel-modules-core.x86_64                     6.12.8-200.fc41 updates
kernel-modules-extra.x86_64                    6.8.7-300.fc40  updates
kernel-modules-extra.x86_64                    6.12.6-200.fc41 updates
kernel-modules-extra.x86_64                    6.12.8-200.fc41 updates
kernel-srpm-macros.noarch                      1.0-24.fc41     fedora

Paquets disponibles
kernel-cross-headers.x86_64                    6.12.4-200.fc41 updates
kernel-debug.x86_64                            6.12.8-200.fc41 updates
kernel-debug-core.x86_64                       6.12.8-200.fc41 updates
kernel-debug-devel.x86_64                      6.12.8-200.fc41 updates
kernel-debug-devel-matched.x86_64              6.12.8-200.fc41 updates
kernel-debug-modules.x86_64                    6.12.8-200.fc41 updates
kernel-debug-modules-core.x86_64               6.12.8-200.fc41 updates
kernel-debug-modules-extra.x86_64              6.12.8-200.fc41 updates
kernel-debug-modules-internal.x86_64           6.12.8-200.fc41 updates
kernel-debug-uki-virt.x86_64                   6.12.8-200.fc41 updates
kernel-debug-uki-virt-addons.x86_64            6.12.8-200.fc41 updates
kernel-devel.x86_64                            6.12.8-200.fc41 updates
kernel-devel-matched.x86_64                    6.12.8-200.fc41 updates
kernel-doc.noarch                              6.12.8-200.fc41 updates
kernel-headers.x86_64                          6.12.4-200.fc41 updates

2 Likes

Exactly. The kernel headers package is only updated if there are new headers.

2 Likes