Issue with kernel and nvidia kernel module

My problem right now is that removing an older kernel will also remove akmods which is required for building the Nvidia kernel module. How can I fix that?

I broke booting with the latest kernel because I accidentally interrupted the build process for the Nvidia module. Now I’m trying to get rid of that whole kernel version so I can re-install it cleanly.

One can avoid this type of action by using dnf remove XXXXX --noautoremove

Interrupting the build of the nvidia modules does not normally corrupt the kernel, so it may not be necessary to remove and reinstall the kernel. Does dnf list installed kmod-nvidia* show a package for that kernel? if it does then one may remove just that package and rebuild it with sudo akmods

2 Likes