I have a couple of programs that are distributed cryptographically unsigned. I use a script to install updates; it is run once a week. To update the unsigned packages I added the “–allow-unsigned-rpm” option. It is ignored by zypper. The “install” command is used instead of “update” since update does not have the unsigned option.
Where have I gone astray?
$ zypper help install
install (in) [OPTIONS] <CAPABILITY|RPM_FILE_URI> ...
--allow-unsigned-rpm Silently install unsigned rpm packages given as commandline parameters.
Default: false
1 package to upgrade.
Overall download size: 99.5 MiB. Already cached: 0 B. After the operation, additional 16.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package jalbum-18.3-1.x86_64 (1/1), 99.5 MiB (233.8 MiB unpacked)
Retrieving: jalbum-18.3-1.x86_64.rpm ......done (569.7 KiB/s)]
jalbum-18.3-1.x86_64.rpm:
Package is not signed!
jalbum-18.3-1.x86_64 (jalbum): Signature verification failed [6-File is unsigned]
Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.
There is no zypper command there, I assume you forgot the install.
This is why we ask to copy/paste complete from your terminal: prompt and command line, lines of output and new prompt line. No changes, no shortcuts. Only so will people trust that they see exactly what you saw.
This option applies to RPM package files that are installed directly. There is no option to override configured repository behavior during installation of individual package from it, you can only disable GPG check globally for the whole repository.
That’s an interesting option that seems to be rather new, it’s not mentioned in any older versions of zypper.
Maybe it’s buggy.
On the other hand, it’s my impression that normally when an unsigned package is encountered(or any other minor defect) the User is prompted to confirm installation and the default is to accept.
If that’s the case, then the option to automatically accept should work which has always existed