zypper wont install local rpms


Zypper suddenly stopped playing nice with local rpms showing error:

sudo zypper in vivaldi-snapshot-2.4.1455.4-1.x86_64.rpm 
[sudo] password for root: 
Loading repository data...
Reading installed packages...
'_tmpRPMcache_:srcpackage:vivaldi-snapshot=0:2.4.1455.4-1' not found in package names. Trying capabilities.
No provider of '_tmpRPMcache_:srcpackage:vivaldi-snapshot=0:2.4.1455.4-1' found.

It used to work, but not anymore. Happens for other rpms, too (tested with Opera). Installing packages from repos works.


rpm -i package.rpm

Works, too.

How can I fix this?

I notice a bug report
bug 1125300 which says:
“This bug was already fixed for zypper-1.14.25”.

In any case, just create a directory for rpm files, and put the rpm there. Then go into Yast Software Repositories, and set that directory to be a repo consisting of plain rpm files. It works well.

Nice, thank you.