I recently installed the latest kernel package, 5.17.7-300.fc36.x86_64. But the kernel-headers package wasn’t installed alongside it, which I need in order to use wifi (I have a Broadcom wireless NIC which requires the wl kernel module to work).
dnf seems to think that the kernel-headers package doesn’t exist for the latest kernel:
> sudo dnf install kernel-headers-5.17.7-300.fc36.x86_64
Last metadata expiration check: 2:07:34 ago on Thu 19 May 2022 05:24:37 AM EDT.
No match for argument: kernel-headers-5.17.7-300.fc36.x86_64
Error: Unable to find a match: kernel-headers-5.17.7-300.fc36.x86_64
What happened to the kernel-headers package and why can’t I install it?
What does sudo dnf list kernel\* show you? Does it show you the kernel-5.17.7 header package?
In general, there are only two versions of packages available in the repositores—the version in the “fedora” repo (the one when the Fedora Linux OS was released), and then the one in the “updates” repository (if you have updates-testing enabled, you also have access to a third version there if one exists). Intermediate versions are not archived in the repositories, so dnf cannot fetch them.
So, if 5.17.7 is no longer the latest version in the updates repo, dnf won’t be able to fetch it from there. You can still go to the build system and fetch it yourself, though:
So kernel-headers-5.17.6 is installed, but and kernel-headers-5.17.0-300.fc36.i686 is available (if for some reason I wanted the 32-bit header package for an older kernel). kernel-headers-5.17.7 is neither installed nor available, even though 5.17.7 is the newest kernel in the repositories.