I upgraded my kernel to 6.2.9, but found the current latest release of zfs (2.1.9) is not compatible, and fails to install completely or correctly. I don’t need the latest kernel (can wait until a compatible zfs release, anyway), so I uninstalled 6.2 and went back to 6.1. zfs was uninstalled as well - I don’t really understand the relationship but I guess zfs has a dependency on the kernel it was installed with.
But now, when I try to dnf install zfs, it tries to reinstall kernel 6.2.9 as well (dnf output below). Is there a way I can tell dnf to install zfs with the 6.1 kernel I am on and not install a 6.2 kernel?
$ sudo dnf install zfs
Package Architecture Version Repository Size
kernel-core x86_64 6.2.9-100.fc36 updates 15 M
kernel-devel x86_64 6.2.9-100.fc36 updates 16 M
zfs x86_64 2.1.9-1.fc36 zfs 659 k
dkms noarch 3.0.10-1.fc36 updates 84 k
(and numerous other dependencies)
DNF cannot install kernel-6.1, since it is no longer in the repos.
It installs/reinstalls the latest available kernel, that is currently kernel-6.2.
DNF is not aware that DKMS cannot build ZFS with this kernel.