Description of problem: The kernel-headers packages matching available Linux kernels are missing in Fedora 34 repository. There are kernel-headers available but not for the exact versions. Version-Release number of selected component (if applicable): kernel 5.11.12-300.fc34 and 5.13.4-200.fc34 How reproducible: Every time Steps to Reproduce: 1. $ sudo dnf install kernel-headers-$(uname -r) kernel-devel-$(uname -r) 2. $ dnf list --showduplicates kernel-core Last metadata expiration check: 0:11:45 ago on Mon Jul 26 17:31:23 2021. Available Packages kernel-core.x86_64 5.11.12-300.fc34 fedora kernel-core.x86_64 5.13.4-200.fc34 updates 3. $ dnf list --showduplicates kernel-headers Last metadata expiration check: 0:11:51 ago on Mon Jul 26 17:31:23 2021. Available Packages kernel-headers.x86_64 5.11.11-300.fc34 fedora kernel-headers.x86_64 5.13.3-200.fc34 updates 4. $ dnf list --showduplicates kernel-devel Last metadata expiration check: 0:11:55 ago on Mon Jul 26 17:31:23 2021. Available Packages kernel-devel.x86_64 5.11.12-300.fc34 fedora kernel-devel.x86_64 5.13.4-200.fc34 updates Actual results: No match for argument: kernel-headers-5.13.4-200.fc34.x86_64 Error: Unable to find a match: kernel-headers-5.13.4-200.fc34.x86_64 No match for argument: kernel-headers-5.11.12-300.fc34.x86_64 Error: Unable to find a match: kernel-headers-5.11.12-300.fc34.x86_64 Expected results: Matching package for kernel-headers to be available and install. Instead headers are available for 5.11.11-300 (expected 5.11.12-300) and 5.13.3-200 (expected 5.13.4-200) Additional info: This prevents NVIDIA kernel modules successfully building with DKMS
We only ship new headers in minor releases if the headers have actually changed. There was no changes in the 5.13.4 headers so the 5.13.3 headers work just fine. kernel-headers.x86_64 5.13.3-200.fc34 updates
More specifically, you do not need matching kernel-headers packages to build a kernel module, the kernel-headers package has nothing to do with building kernel modules. The kernel headers used to build kernel modules are in the kernel-devel package, which is built with every kernel. The "kernel-headers" package is the userspace API headers used to build userspace software. Fore more background on this, see: https://www.labbott.name/blog/2019/11/16/what-s-a-kernel-headers-package-anyway/ and http://thorstenl.blogspot.com/2021/01/package-names-can-be-false-friends-too.html