Skip to content
Fxzx micah edited this page Nov 2, 2024 · 1 revision

This repository is mainly for nvidia graphics card users who don't want to install a bunch of development kits on their computer.

Fedora only.


Reason

When I first installed the nvidia driver, I used the .run file provided by nvidia. I felt it was ok, but not good enough.

For example, I had very few options for the files that were installed on my computer, and I couldn't easily manage them after installation, after all, they didn't belong to any of the (rpm) packages.

Then I learned about the akmods solution. But when I tried to install it, I realized that I needed to install hundreds of packages that would take up several gigabytes of storage space. The feeling was as ridiculous as building the entire Eiffel Tower in order to lift a single grain of rice (personal feeling, you can disagree with me). Eventually I gave it up.

In the end, I got tired of the existing installation solutions and of installing development kits and executing commands to recompile kernel modules every time I updated the kernel, then I decided to tackle it all at the source.

Benefits

  • Now you don't have to install any development packages on your computer just for installing nvidia driver!

  • You just need to install the (rpm) packages containing the nvidia kernel modules and other nvidia driver binaries!

  • Supports secure boot! It can also not support secure boot if you don't need it, the choice is yours!

  • The kernel modules build runs automatically in the cloud, you just need to trigger it and wait for the build to finish, download (rpm) packages and install them! You are done!

Drawbacks

  • Since I'm not a professional driver developer, and I have only limited knowledge of the functionality of nvidia driver files, I may have made some mistakes in splitting the package, so feel free to correct me if you find them.

  • Other potential issues.

Usage

Assume a computer that has never had nvidia's proprietary driver installed:

  • Means that you'd better restore your computer to the state it was in before you installed the nvidia driver using another solution.

  • Or you have enough knowledge to solve potential problems: such as reusing certificate and key previously used for signing.

  1. (If you need secure boot) Create a pair of certificate and key to be used for signing.

  2. (If you need secure boot) Place them in the /etc/keys directory and name them modsign.der and modsign.key.

  3. (If you need secure boot) Use mokutil to import the modsign.der file.

  4. The above operations are required only once!

  5. Download the built (rpm) packages and install them.

  6. (If you only update the kernel) You just need to trigger the build and install the nvidia-modules (rpm) package!

  7. (If you update the nvidia drivers) Unfortunately, you need to reinstall new versions of all the nvidia-* (rpm) packages you previously installed, which is a limitation of nvidia driver.

License

Due to NVIDIA license restrictions, the priority purpose of this repository is for my own use and to provide a reference for others who want to build their own nvidia driver (rpm) packages. It is not recommended that others use the build results of this repository directly to avoid being judged as repackaging and distributing the proprietary driver.

Clone this wiki locally