Rocky 8.4: disable nouveau to install nvidia driver

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