# Akmod-nvidia-470xx fails to compile in Rocky 9.4?

**URL:** <https://forums.rockylinux.org/t/akmod-nvidia-470xx-fails-to-compile-in-rocky-9-4/14048>\
**Category:** Rocky Linux Help & Support\
**Created:** [May 14, 2024, 11:19am UTC](https://forums.rockylinux.org/t/akmod-nvidia-470xx-fails-to-compile-in-rocky-9-4/14048 "2024-05-14T11:19:42Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![xbourque](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xbourque](https://forums.rockylinux.org/u/xbourque)\
**Post date:** [June 20, 2024, 6:34pm UTC](https://forums.rockylinux.org/t/akmod-nvidia-470xx-fails-to-compile-in-rocky-9-4/14048/8 "2024-06-20T18:34:25Z")

</div>

If anyone stumbles on this thread:

“ELRepo - Testing” provides an up-to-date Nvidia 470.xx driver that is compatible with the latest Rocky Linux kernel.

I am running Nvidia 470.256.02 driver on kernel 5.14.0-427.22.1 sucessfully on an old Macbook Pro GeForce GT 750M Mac Edition.

```auto
dnf info kmod-nvidia-470xx
ELRepo.org Community Enterprise Linux Repository - el9 7.0 kB/s | 3.0 kB 00:00    
Installed Packages
Name : kmod-nvidia-470xx
Version : 470.256.02
Release : 1.el9_4.elrepo
Architecture : x86_64
Size : 82 M
Source : kmod-nvidia-470xx-470.256.02-1.el9_4.elrepo.nosrc.rpm
Repository : @System
From repo : elrepo-testing
Summary : nvidia-470xx kernel module(s)
URL : http://www.nvidia.com/
License : GPLv2
Description : This package provides the proprietary NVIDIA OpenGL kernel driver modules.
             : It is built to depend upon the specific ABI provided by a range of releases
             : of the same variant of the Linux kernel and not on any one specific build.

```

Annoyingly, there is an out of date package with the same name in RPMFusion, so make sure ELRepo Testing is above RPMFusion in your repo priorities (or disable RPMFusion).

`dnf install elrepo-release`  
`sudo nano /etc/yum.repos.d/elrepo.repo`

```auto
[elrepo-testing]
name=ELRepo.org Community Enterprise Linux Testing Repository - el9
baseurl=http://elrepo.org/linux/testing/el9/$basearch/;http://mirrors.coreix.net/elrepo/testing/el9/$basearch/;http://mirror.rackspace.com/elrepo/testing/el9/$basearch/;http://linux-mirrors.fnal.gov/linux/elrepo/testing/el9/$basearch/
mirrorlist=http://mirrors.elrepo.org/mirrors-elrepo-testing.el9
enabled=1
countme=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
priority=90

```

Make sure [elrepo-testing] enabled=1, priority=90. (Default priority is 99, lower numbers have priority).

If you installed the Nvidia-470xx driver from RPMFusion, make sure to uninstall it completely before installing the ELRepo one:

`sudo dnf remove xorg-x11-drv-nvidia-470xx*`

Install Nvidia driver from ELRepo-Testing:

`sudo dnf install kmod-nvidia-470xx`

---

_[View the full topic](https://forums.rockylinux.org/t/akmod-nvidia-470xx-fails-to-compile-in-rocky-9-4/14048)._
