zypper install package and break dependencies

Hi all,

is ist possible to use zypper in interactive mode and install a package and break dependencies?

zypper -n install git-core

Loading repository data…
Reading installed packages…
Resolving package dependencies…

Problem: git-core-1.8.4.5-3.4.1.i586 requires openssh, but this requirement cannot be provided
uninstallable providers: openssh-6.2p2-3.1.2.i586[openSUSE-13.1-1.10]
openssh-6.2p2-3.1.2.i586[repo-oss]
openssh-6.2p2-3.4.1.i586[repo-update]
Solution 1: do not forbid installation of openssh-6.2p2-3.4.1.i586[repo-update]
Solution 2: do not forbid installation of openssh-6.2p2-3.1.2.i586[repo-oss]
Solution 3: do not forbid installation of openssh-6.2p2-3.1.2.i586[openSUSE-13.1-1.10]
Solution 4: do not install git-core-1.8.4.5-3.4.1.i586
Solution 5: break git-core-1.8.4.5-3.4.1.i586 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/5/c] (c): c

In this case I dont want to install openssh, but install git-core. All that in interactive mode.

Unfortunately zypper automatically selects ‘cancel’

Does anyone know a solution for that?

On 12/10/2014 04:36 PM, taich wrote:
>
> Hi all,
>
> is ist possible to use zypper in interactive mode and install a package
> and break dependencies?
>
> # zypper -n install git-core
>
> Loading repository data…
> Reading installed packages…
> Resolving package dependencies…
>
> Problem: git-core-1.8.4.5-3.4.1.i586 requires openssh, but this
> requirement cannot be provided
> uninstallable providers: openssh-6.2p2-3.1.2.i586[openSUSE-13.1-1.10]
> openssh-6.2p2-3.1.2.i586[repo-oss]
> openssh-6.2p2-3.4.1.i586[repo-update]
> Solution 1: do not forbid installation of
> openssh-6.2p2-3.4.1.i586[repo-update]
> Solution 2: do not forbid installation of
> openssh-6.2p2-3.1.2.i586[repo-oss]
> Solution 3: do not forbid installation of
> openssh-6.2p2-3.1.2.i586[openSUSE-13.1-1.10]
> Solution 4: do not install git-core-1.8.4.5-3.4.1.i586
> Solution 5: break git-core-1.8.4.5-3.4.1.i586 by ignoring some of its
> dependencies
>
> Choose from above solutions by number or cancel [1/2/3/4/5/c] (c): c
>
> In this case I dont want to install openssh, but install git-core. All
> that in interactive mode.
>
> Unfortunately zypper automatically selects ‘cancel’
>
> Does anyone know a solution for that?
>
>

Hit the backspace key and then select the option you want.

Ken

You might want to make sure you have your main update repo enabled and then do a “zypper update” to sync all your packages. Your git-core package will then be able to find compatible dependencies.

Typically a useful thing to do is always run the following before installing a new app

zypper update

TSU

You’re actually running it in non-interactive mode… :wink:
Omit the ‘-n’ and you should be able to select an option.

From “zypper --help”:

       --non-interactive, -n   Do not ask anything, use default answers
                                                automatically.