Results 1 to 3 of 3

Thread: Zypper with 1,2,3,c choices auto installation

  1. #1

    Lightbulb Zypper with 1,2,3,c choices auto installation

    Hello,

    I use zypper in quiet installations of applications like zypper -q IN -y application

    In some cases, i have problem with depencies, and zypper asks for a choice, 1,2,3, or cancel.

    I tried zypper --force or zypper -n, but i can't figure out how can i tell zypper to automatically choose for example the second choice.

    Any idea ?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,841
    Blog Entries
    14

    Default Re: Zypper with 1,2,3,c choices auto installation

    This mostly means you have extra repos active, since no package exists twice in the distro itself. As long as you don't tell zypper which version should be used, either by setting priorities, or by using a vendor-change to the repo(s) involved, it cannot know which version you want to use.
    Please show an example and show
    Code:
    zypper lr -d
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,254
    Blog Entries
    2

    Default Re: Zypper with 1,2,3,c choices auto installation

    I'm not aware of a way to make a specific selection, only to implement the default option (typically option 1) by running completely unattended.
    Personally, I haven't found myself in a situation where I'd want to do anything other than to upgrade to latest available from any repo so although I've run into this I haven't thought twice about what happens by default.

    If you wanted to not upgrade/update the package, then you could create a lock on the old package (If necessary write into your script) to prevent the upgrade.
    The remaining option to skip is a somewhat odd choice in an unattended install, but seems to be the remaining option that can't be addressed.

    Of course, your tries wouldn't work...
    Code:
    zypper in -f
    forces the re-install, which incidentally will also restore the default configuration, wiping out your User config (A regular install or update retains the User config)
    Code:
    zypper -n  in
    is one of the ways to do an unattended install, has no options to configure further

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •