On 19/06/2022 06:09, Francis.Montagnac@inria.fr wrote:
On Sat, 18 Jun 2022 23:31:48 +0100 Barry wrote:
Try that (for the running kernel): dnf remove kmod-nvidia-$(uname -r) akmods --akmod nvidia
As I said that does not work because the already built modules are not Deleted.
They are since akmod packages the modules in the kmod-nvidia-$(uname -r) RPM.
Thus "dnf remove kmod-nvidia-$(uname -r)" properly removes the kernel modules.
The step I had not known about is that the kmod-nvidia is the output of akmods comilation of the code in akmod-nvidia.
So as you say if that is dnf remove kmod-nvidia then akmods will build a new one.
What I have tried that fails is to dnf reinstall akmod-nvidia.
The use of akmods --force is only useful if there has been a failed compilation. It will build again after a sucessfule compilation.
Thanks you for clearing that up!
Barry
It may be you can rm the nvidia module and that may good enough to trigger the build.
No trigger in this case IMO, you should call akmods to build them.