Disable kernel updates

I have a Fedora 37 system with nvidia drivers. Currently there is a problem with driver 540 and latest kernel update for 6.3, so I want to forbid any kernel updates until this is resolved. But I am happy to get other updates from dnf.

Is there a way of blocking only kernel updates ?

I did find

sudo dnf update --exclude=kernel*

The answer here shows how to retain one kernel without blocking updates. This allows one to test each update until the newer kernel is confirmed to work for them.

1 Like