Rocky 8.4: disable nouveau to install nvidia driver

Hi Everyone,
Please facilitate assistance on how to disable the nouveau driver in order to install an nvidia driver.

I have not been successful in finding a step by step process on how to get this done. I did a few searches online and found some article, but after trying many of them I am back here to see if someone how this done correctly.

I am running latest 8.4 code released.

You want to try ELRepo’s kmod-nvidia package. It will disable the nouveau driver as part of the installation process. Look in:

and

for details.

I followed a recipe provided elsewhere on this forum (tip of the hat to @Ritov) that worked just fine for me:

  1. In /etc/default/grub, add the following phrase to the value of GRUB_CMDLINE_LINUX:
    module_blacklist=nouveau
    
  2. Create /etc/modprobe.d/nouveau.conf and add the following line:
    blacklist nouveau
    
  3. Rebuild modules
    depmod -a
    
  4. Rebuild your grub config:
    grub2-mkconfig --output=/boot/efi/EFI/rocky/grub.cfg
    

I did all the above from a shell with root privileges.

I had no further issues or complaints from nouveau or my nVidia card after doing this.

5 Likes