Results 1 to 8 of 8

Thread: Does "zypper dup" make package order?

  1. #1

    Default Does "zypper dup" make package order?

    The question involves packages without conflicting dependencies, let's pick two packages X and Y, which are getting upgraded by "zypper dup". Is there a rule that zypper follows to upgrade them in a specific order, or is it random, or are they sorted by a criteria?

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,243
    Blog Entries
    15

    Default Re: Does "zypper dup" make package order?

    Quote Originally Posted by xt1zer View Post
    The question involves packages without conflicting dependencies, let's pick two packages X and Y, which are getting upgraded by "zypper dup". Is there a rule that zypper follows to upgrade them in a specific order, or is it random, or are they sorted by a criteria?
    Hi
    No it runs a resolver (dependency checker) to ensure the correct order, if a conflict occurs it will ask what to do.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

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

    Default Re: Does "zypper dup" make package order?

    Although I have no insight or actual knowledge,
    Based on long observation

    Whether there are conflicting dependencies or not,
    The order packages are updated is likely a sequential list in a particular order, and I would theorize likely created by OpenQA, which is the automated system that tests for code quality and bugs.
    IMO a dependency checker may be part of process but can't be the main framework, else packages wouldn't likely be installed in groups and groups in a particular order (at least I wouldn't think so, you'd see much more random order package installation).

    Again,
    I have no insight and this is a pure guess because I'd hardly expect that the order would be handcrafted by humans... It'd be too big a job and human judgement is too imperfect to do the job well, much less quickly!

    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!

  4. #4
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,243
    Blog Entries
    15

    Default Re: Does "zypper dup" make package order?

    Hi
    Run the debug resolver to see.....

    Code:
    zypper dup --debug-resolver
    Test case results in /var/log/zypper.solverTestCase directory.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    16,015
    Blog Entries
    3

    Default Re: Does "zypper dup" make package order?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    No it runs a resolver (dependency checker) to ensure the correct order, if a conflict occurs it will ask what to do.
    I would use "best order" rather than "correct order" there.

    If the update to package A depends on the update to package B, then it will try to update B first.

    However, it is possible that the update to package B also depends on the update to package A. In such a case there isn't a way of doing it that doesn't leave some package in a temporary broken state (hopefully for only a very brief time).
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  6. #6
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,243
    Blog Entries
    15

    Default Re: Does "zypper dup" make package order?

    Quote Originally Posted by nrickert View Post
    I would use "best order" rather than "correct order" there.

    If the update to package A depends on the update to package B, then it will try to update B first.

    However, it is possible that the update to package B also depends on the update to package A. In such a case there isn't a way of doing it that doesn't leave some package in a temporary broken state (hopefully for only a very brief time).
    Hi
    In some cases deleted, hence a check with zypper ps -s but libzypp is pretty clever, I've not struck issues of late, there have been issues with the likes of curl. It all get sorted pretty quick and if needed via the Tumbleweed update repository....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: Does "zypper dup" make package order?

    Thanks, but back to the initial question, what if the two packages actually don't depend on each other?

  8. #8
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,243
    Blog Entries
    15

    Default Re: Does "zypper dup" make package order?

    Quote Originally Posted by xt1zer View Post
    Thanks, but back to the initial question, what if the two packages actually don't depend on each other?
    Hi
    The only way to know is run debug solver to see what it decides, esp if libraries involved. If both packages where say scripts then again it may boil down to packager preferences (you can see this in the package build log output) one may have added a requires on a shell, the other not.

    See https://en.opensuse.org/openSUSE:Libzypp_satsolver
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Tags for this Thread

Posting Permissions

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