zypper ar -f ftp://download.nvidia.com/opensuse/leap/42.1/ nvidia
zypper in x11-video-nvidiaG03
depending on your graphic card you might need G02 or G04 driver you can check what driver you need on nvidia’s site, G02 is for older pre hundreds cards, G03 is generic and works with most cards, G04 is for the latest 6xx and above (this is my speculation I’ve used G03 for years on an older 240)
just note that if you have an optimus laptop (intel+nvidia) you can not use the regular drivers you need bumblebee
The first part works, but the second commands throws this at me
ben@linux-2re9:~> sudo zypper in x11-video-nvidiaG03
Retrieving repository 'nvidia' metadata ------------------------------------------------------------------\]
Signature verification failed for file 'repomd.xml' from repository 'nvidia'.
Warning: This might be caused by a malicious change in the file!
Continuing might be risky. Continue anyway? [yes/no] (no): yes
File './repodata/5b03c21067c04ad01bfbf71648b171192d49e587ee11e7f4057716abb22da3c2-primary.xml.gz' not found on medium 'ftp://download.nvidia.com/opensuse/leap/42.1/'
Abort, retry, ignore? [a/r/i/? shows all options] (a): r
File './repodata/5b03c21067c04ad01bfbf71648b171192d49e587ee11e7f4057716abb22da3c2-primary.xml.gz' not found on medium 'ftp://download.nvidia.com/opensuse/leap/42.1/'
as far as I can tell the drivers are still there and that’s more of an informative error about missing pgp keys, personally I do believe you can safely ignore that error because if nvidia’s ftp was really hacked it would make world news those packages are safe.
so you should not chose retry r but ignore i
I think that won’t help, it rather seems the repo metadata is wrong/outdated.
That has happened before a few times already, when nvidia updated the driver.
They seem to forget to update the repo metadata too, or are just slow at it sometimes.
An option now would also be to download the rpm files with a web browser or ftp client and install them manually.
But it would be easier to just wait, if it’s not really urgent.