Nvidia logo

7. Fedora 43/42/41 Update NVIDIA Drivers

This is a quick guide on how to update the NVIDIA drivers installed using the instructions on page one Fedora 43/42/41 NVIDIA Drivers Install Guide.

Normally this is a simple process, boot runlevel 3 run installer and boot back to runlevel 5. Currently when you have to set nvidia-drm.fbdev=0 before running installer, it’s bit trickier. I decided to write simple one-liner / script to add boot entry to GRUB2, which helps a lot when you want to update your NVIDIA drivers. This is a full process to upgrade / downgrade your NVIDIA drivers. Sometimes NVIDIA release new Beta or NFB version and later you might want change back fresh Stable release, it’s possible with this. Watch Video to see whole process how to “Downgrade” from NVIDIA 575.51.02 BETA to NVIDIA 570.181.

Check video version of guide howto Fedora 43/42/41 Update NVIDIA Drivers:

Support inttf:

Buy Me a Coffee:

7.1 Change root user

su -
## OR ##
sudo -i

7.2 Generate GRUB2 entry

Skip this step if you already have done this.

Use following command to generate GRUB2 entry for NVIDIA Update.

latest=$(ls -v /boot/loader/entries/*.fc4* |tail -1); /bin/cp -f ${latest} ${latest%%-*}-1-nvidia.conf; sed -E -i '/^title / s/(\)\ 4[0-9]\ ).*$/\1- NVIDIA Update/' ${latest%%-*}-1-nvidia.conf; sed -i '/^options / s/$/     nvidia-drm.fbdev=0 3/' ${latest%%-*}-1-nvidia.conf

Add /etc/grub.d/90_NVIDIA_update_entry file with following content to run this command automatically whenever the kernel is updated or you run the grub2-mkconfig command:

#!/bin/bash
latest=$(ls -v /boot/loader/entries/*.fc4* |tail -1)
/bin/cp -f ${latest} ${latest%%-*}-1-nvidia.conf
sed -E -i '/^title / s/(\)\ 4[0-9]\ ).*$/\1- NVIDIA Update/' ${latest%%-*}-1-nvidia.conf
sed -i '/^options / s/$/ nomodeset nvidia-drm.fbdev=0 3/' ${latest%%-*}-1-nvidia.conf

And make it executable:

chmod +x /etc/grub.d/90_NVIDIA_update_entry

Note: You only need to do this step once and after that every time you update NVIDIA drivers on Fedora you can boot directly into runlevel 3 with the correct parameters.

7.3 Change Back to Normal User

exit

Or press Ctrl+D

7.4 Download NVIDIA Installer Package

Go to http://www.nvidia.com/Download/Find.aspx?lang=en-us and find latest version of installer package. When you use browser this is normally downloaded /home/<username>/Downloads/NVIDIA-Linux-xxxx.run location.

Support inttf:

Buy Me a Coffee:

7.5 Make NVIDIA installer executable

chmod +x /path/to/NVIDIA-Linux-*.run

7.6 Reboot to runlevel 3

reboot

7.7 Update NVIDIA proprietary drivers

7.7.1 Log in as root user

Or alternatively change root user (you shouldn’t have nouveau, nova_core and xorg loaded)

su -
## OR ##
sudo -i

7.7.2 Run NVIDIA Binary

Following command executes driver install routine. Use full file name command if you have multiple binaries on same directory.

./NVIDIA-Linux-*.run
## OR full path / full file name ##
Downloads/NVIDIA-Linux-x86_64-595.58.03.run
Downloads/NVIDIA-Linux-x86_64-590.48.01.run
Downloads/NVIDIA-Linux-x86_64-580.142.run
Downloads/NVIDIA-Linux-x86_64-470.256.02.run

7.7.3 NVIDIA Installer Multiple kernel module types are available

Select NVIDIA Propriatary

NVIDIA Installer Multiple kernel module types are available

7.7.4 NVIDIA Installer Building kernel modules

NVIDIA Installer Building kernel modules

NVIDIA Installer Building kernel modules

7.7.5 NVIDIA Installer Can’t Find X Library Path

Select OK and ignore this warning, because you don’t have Xorg installed.

NVIDIA Installer 32-bit Compatibility Libraries

7.7.6 NVIDIA Installer 32-bit Compatibility Libraries

Select Yes if you need 32-bit compatibility libraries.

NVIDIA Installer 32-bit Compatibility Libraries

7.7.7 NVIDIA Installer register kernel module sources with DKMS

Select Yes, dkms build your kernel modules automatically when you update kernel on your system.

NVIDIA Installer register kernel module sources with DKMS

7.7.8 NVIDIA Installer rebuild initramfs

Select Rebuild initramfs

NVIDIA Installer rebuild initramfs

NVIDIA installer rebuilding initramfs

NVIDIA installer rebuilding initramfs

7.7.9 NVIDIA Installer run nvidia-xconfig utility and backup pre-existing X configuration

Select Yes

NVIDIA Installer run nvidia-xconfig utility and backup pre-existing X configuration

7.7.10 NVIDIA Drivers Installation Complete

NVIDIA Drivers Installation Complete

7.8 All Is Done and Then Reboot Back to Runlevel 5

reboot