You can just remove the zfs-dkms and zfs-utils packages, and then reinstall them ...
pacman -R zfs-dkms zfs-utils
And then ...
yay -S zfs-dkms
Reboot after that. zfs-utils will be automatically installed as a dependency. This has always worked for me when I've needed to do it. The only thing to note is that the /etc/zfs/zed.d/zed.rc file will be replaced with a new default file, so if you've made any changes in there for the zed service (for example for email notifications) then you will have to edit that file again, or restore it from a backup.
Pinned Comments
kstolp commented on 2023-09-29 00:34 (UTC)
When requesting changes, please include detailed reasoning for the change.
kstolp commented on 2023-01-07 09:31 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the two keys into your keyring. ArchWiki article. You can find the key IDs in the PKGBUILD file, in the
validpgpkeys
array. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)