[fedora 25+] Prevent kernel update when drivers not available

Hey, i’m trying to prevent sudo dnf update from updating the kernel when nvidia drivers are not yet available for that kernel, as that is a recurrent problem and i usually update everything weekly. Any pointers on how to do that?

Add excludepkgs=kernel* under [main] in /etc/dnf/dnf.conf

384.111 works with 4.14.11 though.

Thanks but that would only remove the kernel from the update list, what i’m trying to do is allow the kernel to be updated if the akmod drivers are ready, you know? Otherwise, update everything except for kernel.

This conditional update is what i’m struggling with.

As of right now, the conditional updating has to be done manually (by you). I don’t really know of a way to see specific dependencies and to create rules to only update the kernel conditionally unless it’s an upstream issue at Red Hat.

1 Like

Where did you get the Nvidia drivers from?

rpmfusion