I am trying to install a package via zypper package manager in SUSE Micro OS.
I am trying to automate the software package installation with help of a bash/shell script.
$ zypper install libopenssl-devel
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides libopenssl0_9_8 = 0.9.8h needed by libopenssl-devel-0.9.8h-30.11.x86_64
Solution 1: do not install libopenssl-devel-0.9.8h-30.11.x86_64
Solution 2: break libopenssl-devel-0.9.8h-30.11.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] (c):
As part of the process, I would like to pre-select solution 2, that is, I need a way to choose the preferred solution in the script itself.
I tried some options and it didn't work. All the below options choose option c which is the default behaviour.
zypper install libopenssl-devel <<< echo "2"
echo "2" | zypper install libopenssl-devel
zypper -n install --force libopenssl-devel
I can't use the rpm package manager.