Remove nvidia.service

This solution has worked for me for some time now. If this approach has issues beyond what I can see, they will surely be pointed out below. One should consider reading the replies before moving forward.

When removing the package openSUSE-repos-MicroOS-NVIDIA, the nvidia service is also removed.

I am not sure if this should be done when the nvidia drivers are in use. I confirmed with lsmod | grep nouveau that the nouveau modules where loaded and with lsmod | grep nvidia that no nvidia modules are loaded, then i proceded (note the 4. and 3. line from the bottom):

# zypper remove openSUSE-repos-MicroOS-NVIDIA
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  openSUSE-repos-MicroOS-NVIDIA

1 package to remove.

Package install size change:
            |         0 B  required by packages that will be installed
    -284 B  |  -    284 B  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
Removing service 'NVIDIA':
Service 'NVIDIA' has been removed.
(1/1) Removing: openSUSE-repos-MicroOS-NVIDIA-20250220.13a9986-1.1.x86_64 ..............................[done]
Running post-transaction scripts .......................................................................[done]

I found this package by running zypper search nvidia. Installed packages are marked with an i on the left:

   | nvidia-texture-tools                              | NVIDIA Texture Tools                        | package
i  | openSUSE-repos-MicroOS-NVIDIA                     | openSUSE NVIDIA repository definitions      | package
   | openSUSE-repos-Slowroll-NVIDIA                    | openSUSE NVIDIA repository definitions      | package

Not all nvidia packages can be removed without also removing very important packages. For example, trying to remove kernel-firmware-nvidia informs that kernel-firmware-all will also be removed and I have a hunch that’s bad.

This solved these annoyances for me:

  • No need to have the non-oss (non-OpenSourceSoftware) repository available and accepting keys for it in order to be able to update.
  • The nvidia drivers where no longer forced to be installed when they got an update, I did not need to accept licenses for software I was not using (I am happy with nouveau).