when I add a repo with
it seems not to work. Packages without key cause an error which says that there is no public key for the package and I can choose to abort, retry or ignore. In sles12 this only gives a warning but no interactivity.
zypper ar --no-gpg-checks URI name
"man zypper" shows that I now can use
or the "-G"-option. Both give an error "unknown option...". The same error occurs if I try
zypper ar --no-gpgcheck URI name
or with "-G" or "--no-gpg-checks".
zypper install --no-gpgcheck PACKAGE
So what is now the right way to install unsigned packages without user-interactivity (specially in scripts)?