Nvidia drivers on CentOS 7

Author: | Posted in howto 11 Comments

Since RPM Fusion doesn’t support RHEL / CentOS 7 and I didn’t feel like dealing with the Nvidia installer, I tried to find alternative package repositories. Fortunately I came across ELRepo which has been providing Nvidia drivers (from the long-lived branch release) in form of precompiled kernel drivers (kmod-nvidia) for a few months.

I tested it on a fresh CentOS 7 installation (using the GNOME Desktop option) and it was pretty straightforward.

 

Import the rpm GPG key

 

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

 

Install ELRepo

 

yum install http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

 

Remove Glamor

 

This is an open source Xorg graphics driver that may cause conflicts with proprietary drivers. If the package is installed it needs to be removed.

yum remove xorg-x11-glamor

 

Install nvidia-detect [ optional ]

 

This is a small utility which detects graphic cards, suggests specific driver versions and checks compatibility with Xorg.

yum install nvidia-detect

Sample output:

nvidia-detect -x
Probing for supported NVIDIA devices...
[10de:11c0] NVIDIA Corporation GK106 [GeForce GTX 660]
This device requires the current 340.32 NVIDIA driver kmod-nvidia
[10de:11c0] NVIDIA Corporation GK106 [GeForce GTX 660]
This device requires the current 340.32 NVIDIA driver kmod-nvidia

Checking ABI compatibility with Xorg Server...
Xorg Video Driver ABI detected: 15
ABI compatibility check passed

 

Install kmod-nvidia

 

When running a 64bit OS, the 32bit Nvidia libraries may also be needed for compatibility, I always install them. The good thing is that kmod-nvidia also disables nouveau automatically, so no more manually tweaking modprobe and grub :)

yum install kmod-nvidia nvidia-x11-drv-32bit

via elrepo.org

Comments
  1. Posted by DS
    • Posted by admin
  2. Posted by DS
  3. Posted by jay warren
  4. Posted by sleever
    • Posted by admin
  5. Posted by desertcat
  6. Posted by Thomas Prescott
  7. Posted by Shyam Kumar
  8. Posted by Ariel
    • Posted by admin

Add Your Comment