*Participation Requested*
MicroOS Desktop Use to Help with ALP Feedback
-
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?
-
Re: Does "zypper dup" make package order?
 Originally Posted by xt1zer
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!
-
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!
-
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!
-
Re: Does "zypper dup" make package order?
 Originally Posted by malcolmlewis
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.
-
Re: Does "zypper dup" make package order?
 Originally Posted by nrickert
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!
-
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?
-
Re: Does "zypper dup" make package order?
 Originally Posted by xt1zer
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
-
Forum Rules
|