This is a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. This is very quickly tested alpha version so if you have any problems please let me know or if this works as it should you can also let me know. I use here currently ARCH Linux Patches + my own patches. Currently this works with NVIDIA 340.108 / 390.157 / 418.113 / 435.21 / 470.199.02 drivers and latest 6.5, 6.4, 6.3, 6.2, 5.19, 5.18, 5.17, 5.16, 5.15, 5.14, 5.13, 5.12, 5.11, 5.10 and 5.9 kernels. This should work with any distribution. You just need install wget and patch packages. Some updates to openSUSE 15.5 / 15.4 users.

Check video version of guide:

Download and Use inttf NVIDIA Patcher BASH Script

1. Change root user

su -
# OR #
sudo -i 

2. Install Needed dependencies

## Fedora ##
dnf install wget patch

## Debian / Ubuntu ##
apt install wget patch

## openSUSE ##
zypper install wget patch

————————————————————————–

Then change back to normal user and run following commands as normal user!

3. Create new directory for inttf NVIDIA patcher

This is just a example, you can use any directory for this.

cd ~
mkdir NVIDIA
cd NVIDIA

4. Download / Update inttf NVIDIA patcher

wget -O inttf-nvidia-patcher.sh https://nvidia.if-not-true-then-false.com/patcher/inttf-nvidia-patcher.sh

5. Make inttf NVIDIA patcher executable

chmod +x inttf-nvidia-patcher.sh

6. Download and patch your drivers

Basic usage

./inttf-nvidia-patcher.sh
--- inttf NVIDIA patcher ---
script usage: inttf-nvidia-patcher.sh [-h] [-v 340.108, 390.157, 418.113, 435.21 or 470.199.02] [-d opensuse-leap]

Example: Get and patch NVIDIA 340.108 for kernel 6.5 / 6.4 / 6.3 / 6.2 / 5.19 / 5.18 / 5.17 / 5.16 / 5.15 / 5.14 / 5.13 / 5.12 / 5.11 / 5.10

./inttf-nvidia-patcher.sh -v 340.108

**Example 2: Get and patch NVIDIA 340.108 for openSUSE Leap 15.5 / 15.4 kernel 5.14 **

./inttf-nvidia-patcher.sh -v 340.108 -d opensuse-leap

After successful run, you should have following content on your directory:

ls -la
total 205524
drwxrwxr-x. 1 inttf inttf       286 Nov 23 02:34 .
drwx------. 1 inttf inttf       624 Nov 23 01:53 ..
-rwxrwxr-x. 1 inttf inttf      5947 Nov 23 02:08 inttf-nvidia-patcher.sh
drwxrwxr-x. 1 inttf inttf        90 Nov 23 02:32 NVIDIA-340xx
drwxrwxr-x. 1 inttf inttf      3192 Nov 23 02:33 NVIDIA-Linux-x86_64-340.108
-rwxrwxr-x. 1 inttf inttf 126660695 Nov 23 02:34 NVIDIA-Linux-x86_64-340.108-patched-kernel-6.3.run
-rwxrwxr-x. 1 inttf inttf  83780873 Jun  4 19:25 NVIDIA-Linux-x86_64-340.108.run

This case use NVIDIA-Linux-x86_64-340.108-patched-kernel-6.3.run file when you install your drivers.