How to Install NVIDIA 510.xx Drivers on Fedora 35 Linux

Most modern Linux Desktop systems such as Fedora come with an NVIDIA driver pre-installed in the Nouveau open-source graphics device driver for NVIDIA video cards. For the most part, this is acceptable; however, if you are using your Linux system for graphical design or gaming, you may get better drivers.

Historically, the Nouveau drivers are slower than Nvidia’s proprietary drivers, lacking the latest graphics card hardware’s latest features, software technology, and support.

Currently, NVIDIA 510 Drivers are available to install, which bring many new features and improvements to the very latest and existing supported graphic cards with better Linux Kernel support, ReBAR indicator, GBM API support, and much more.

The following tutorial will teach you how to install the latest NVIDIA Drivers 510.xx series on Fedora 35 Linux or Fedora 34 using the command line terminal with alternative installation methods.

Update Fedora

Before you begin, update your system to make sure all existing packages are up to date to avoid conflicts during the installation.

sudo dnf upgrade --refresh -y

Important Notice

The NVIDIA Properiarty Drivers only support X11 and not Wayland on Fedora 35.

The NVIDIA 510 Graphic Card drivers have been officially released, the beta was 510.37.xx, and the release versions are now from 510.47.xx onwards.

This tutorial uses a stock standard installation of the Fedora 35 Workstation. Heavily modified systems may encounter issues that are not supported in this tutorial.

Determine your Graphics Card

The first step for users with aging NVIDIA Graphics cards is to determine what it is and if it is supported, users with brand new cards can skip this part as no doubt they will be supported.

First, find your graphics card module.

lspci | grep -e VGA

Example output:

03:00.0 VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)

Next, visit the supported NVIDIA GPU 510 supported chips section and verify your card is listed before moving on. For example, the tutorial uses an older GeForce GTX 1650, which is still kept in that list.

Option 1. Install NVIDIA Drivers – RPM Fusion

For users who would prefer to install NVIDIA drivers using an RPM, visit our tutorial on how to Install NVIDIA Graphic Drivers on Fedora 35 to see the full tutorial installation details, which also covers support for legacy drivers and the beta/testing drivers repository.

A quick overview of installing the drivers with RPM fusion is as follows.

Import RPM Fusion Free:

sudo dnf install \$(rpm -E %fedora).noarch.rpm

Import RPM Fusion Nonfree:

sudo dnf install \$(rpm -E %fedora).noarch.rpm

Next, use the following command to install the NVIDIA 510 drivers.

sudo dnf install akmod-nvidia

Optionally, for users that want CUDA support as well, use the following command.

sudo dnf install xorg-x11-drv-nvidia-cuda

Once installed, reboot your PC.

sudo reboot

Once back in your system, run the following terminal command to verify the installation.


As explained, more details of installing NVIDIA drivers with RPM Fusion can be found in the tutorial linked with legacy drivers and beta/testing drivers.

Option 2. Download/Install NVIDIA Drivers – Manually


First, visit NVIDIA’s downloads page and download the latest .run file or get the link and use the wget command.


Install NVIDIA 510.47.03 Drivers on Fedora Linux 34/35

Example command only (make sure to get the latest link):


Install Linux Headers and compilation dependencies:

sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig -y

Next, blacklist the nouveau driver create a blacklist file:

sudo nano /etc/modprobe.d/blacklist-nouveau.conf

Once inside the file, add the following:

blacklist nouveau
options nouveau modeset=0


Install NVIDIA 510 Drivers on Fedora 35

Save the file CTRL+O, then exit CTRL+X.

You will then need to regenerate the Linux boot process.

sudo dracut -v -f

Warning, you will see a possible missing firmware message now. This is ok to ignore.

Now, reboot to the multi-user run level; this means for newer users that you will reboot your system in terminal mode entirely, forgoing any graphic UI while you install your NVIDIA drivers.

sudo systemctl set-default

Reboot system.

sudo reboot now

Install NVIDIA 510 Drivers

When you reboot your system, you will come to the terminal UI, log in to your account and navigate to the directory you downloaded your NVIDIA 510 .run driver package.

Next, run the following bash command to start the installation process.

Example only (your version should be different in the future):

sudo bash NVIDIA-Linux-x86_64-510.{version-number}.run


sudo bash NVIDIA-Linux-x86_64-510.*.run

Next, you will see a screen and loading bar for building the kernel. After a few seconds to minutes, you will see a prompt.

The first prompt will ask about allowing DKMS to automatically build a new module if you install or upgrade a new module.

This is an optional choice, but it is recommended to select Yes given how many Kernel updates occur on Fedora unless you are confident about doing it yourself.


Install NVIDIA 510 Drivers on Fedora 35

Next, if you want to install 32-bit compatibility, select Yes or No to proceed with the following optional prompt installation choice.


Install NVIDIA 510 Drivers on Fedora 35

It is recommended to select Yes for 32-bit compatibility for most users.

Next, the installation will build the DKMS kernel module, which may take a few minutes.


Install NVIDIA 510 Drivers on Fedora 35

In the last configuration option, you will receive another prompt asking to keep default settings for the nvidia-xconfig utility or if you would like the utility to configure the files for you automatically.


Install NVIDIA 510 Drivers on Fedora 35

This is optional, but the recommended option for fresh installs would be Yes for unsure users.

One last prompt will appear informing you that you have successfully installed the Nvidia Drivers package.


Install NVIDIA 510 Drivers on Fedora 35

Select Ok to exit.

Now that the drivers are installed, you need to reboot your system but first, make sure to switch back to the graphical UI interface.

sudo systemctl set-default

Now, reboot.

sudo reboot now

Verify NVIDIA 510 Drivers

After you log back into your system, you can view the status of the graphic card with the nvidia-smi” command.


Example output:

Install NVIDIA 510 Drivers on Fedora 35

Alternatively, open your Nvidia X Server GUI to confirm the driver’s build version.

Example only:

Install NVIDIA 510 Drivers on Fedora 35

Option 3. Install NVIDIA Drivers – NVIDIA Repository


For users who do not want the work involved in compiling kernels and manually downloading every time an update occurs, an easier way to install the latest kernel available for your system is to import the NVIDIA repository directly.

This may not be suitable for some secure systems using third-party repositories, but the following steps will be ideal for the majority.

First, import the repository for your Fedora 34 or 35 system.

Import Fedora 34 NVIDIA Repository:

sudo dnf config-manager --add-repo

Import Fedora 35 NVIDIA Repository:

sudo dnf config-manager --add-repo

Install required dependencies for safe measures.

sudo dnf install kernel-headers kernel-devel dkms -y

Next, install the latest NVIDIA drivers which are 510 series at the time of this tutorial, using the following command.

sudo dnf module install nvidia-driver:latest-dkms

Example output:

Download/Install NVIDIA 510.39.01 Beta Drivers on Fedora 34/35

Type Y, then press the ENTER KEY to proceed.

For users wishing to install CUDA, use the following command.

sudo dnf install cuda

Note you will be prompted to import GPG keys during the installation. This is safe to do so for newer users.

Situational – Warning, the repository and installation may occur compatibility issues with RPM-FUSION NON-FREE. Use the following command to disable the NVIDIA drivers part of this extra third-party repository.

sudo dnf --disablerepo="rpmfusion-nonfree*" install cuda

Lastly, reboot your system once done.


Verify the installation by running NVIDIA-SMI as the manual installation steps showed beforehand.


Example output:

Download/Install NVIDIA 510.39.01 Beta Drivers on Fedora 34/35

Comments and Conclusion

Congratulations, you have installed the latest NVIDIA 510 Graphic Card Drivers on your Fedora 35 Workstation. Ideally, use the installation methods requiring repositories to constantly keep receiving new updates when released compared to the manual process.

Not what you were looking for? Try searching for additional tutorials.

6 thoughts on “How to Install NVIDIA 510.xx Drivers on Fedora 35 Linux”

  1. I’m going with option 3 and isn’t there error in line “sudo dnf –disablerepo=”rpmfusion-nonfree*” install cuda
    “, when there is install cuda two lines after that once again?
    Anyway I’ve got from last step “nvidia-smi” output
    “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.” Any tips with that?
    I’m running on Fedora 35 Workstation, before that I’ve unsuccessfully tried RPMFussion repo but I’ve ended up with Kernel module missing error on startup.

    • Sorry for late reply.

      Try this instead

      sudo dnf install nvidia-driver nvidia-settings dkms nvidia-driver-libs

      the nvidia-settings contains the nvidia-smi, I will update the tutorial for this I think I must have installed CUDA by mistake here and forgot to recheck both commands.

      I just tested the command it works on my end fresh 35 install and Nvidia card.

      Just curious what kernel you are using? Normally the RPM fusion works well, also make sure you are not using UEFI, secure boot as this can lead to a blank screen.

      Let me know, thanks.

    • Also, Michael nvidia-smi is not critical, basically, it is reporting query information on the card, you should still have your nvidia-xsettings and configurations and other nvidia-drivers installed.

      I should have made that a bit more clear sorry,

      Also, I have further updated the command.

      sudo dnf install nvidia-driver nvidia-settings dkms nvidia-driver-libs nvidia-modprobe nvidia-xconfig nvidia-persistenced

      Funny enough nvidia-smi has its own package from nvidia for ubuntu/debian based systems.

      I mean you can install Cuda if you have plenty of hard drive space.

  2. Hi Joshua,
    thanks for your help.
    I’m on kernel 5.16.9-200.fc35.x86_64
    Secure Boot is disabled in BIOS.
    Today I’ve tried both RPM Fusion and Cuda repo drivers install with your new command.
    Unfortunately without a success
    With Cuda repo drivers
    Everything seems fine but listing “lspci -vnn | grep -i ‘VGA compatible controller’ -A 12″

    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117GLM [T1200 Laptop GPU] [10de:1fbc] (rev ff) (prog-if ff)
    !!! Unknown header type 7f
    Kernel modules: nouveau

    With RPM Fusion I always end up with NVIDIA kernel module missing. Falling back to nouveau during start up and also lscpi is similar just on the last line is also nvidia listed after nouveau but with the startup error

    • Hi Michael,

      Hmm, maybe try removing everything.

      sudo dnf autoremove nvidia* cuda*
      or if that does not remove all the packages maybe try something more technical like sudo sudo dnf autoremove \*nvidia\* as an example.

      then try,

      sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig

      then run

      sudo dnf module install nvidia-driver:latest-dkms
      and even try
      sudo dnf module reinstall nvidia-driver:latest-dkms

      The above command really should cover it all. I just tested on two spare PC’s with old/new drivers with fedora 35, and worked like a charm the first time so just need to figure out what is causing the issue, love linux distros sometimes 🙂

      Just making sure, your system is up to date?

      After that, maybe try syncing your Fedora system in case something is buggy.

      sudo dnf distro-sync


Leave a Comment