0

I have a problem with SUSE 12 zypper.

I need to install an unsigned package with zypper in non-interactive mode from script. Unfortunately, zypper version is 1.13 and there is no option for flag --allow-unsigned-rpm. So I've been trying to "pipe" output of the printf command into zypper, but having no luck so far.

Here is an example of what I am doing:

printf "y\ni\n" | sudo zypper install UNSIGNED_RPM_PATH_HERE

What am I doing wrong? This pipe works for every other script I tried to write myself.

1 Answer 1

0

Found "solution" to my problem. I edit /etc/zypp/zypp.conf file while my script executes. You can add pkg_gpgcheck = off to turn off signature checks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.