[softwaremgmt] 'zypper lu -t package' vs. 'zypper up -t package'
Hi, here's another isssue with doing update with zypper. The difference between 'lu' and 'up' for package updates (for discussion of 'up/lu' vs. 'up/lu -t package', see this thread: [1]). Currently 'zypper lu -t package' list all packages for which a newer version exists in the repositories. But 'zypper up -t package' select for installation/upgrade only a subset from this list - packages that are actually installable/upgradable given the current set of packages and their dependencies and the set of available updates. See also [2]. The difference between these two is not that big if you deal with one vendor only (e.g. you only have openSUSE Factory repo). But if another vendors come into play, there is a problem: 'zypper up -t package' does not upgrade packages which would involve vendor changes [3]. Suggestions: 1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do. #1 is my favorite :O) Any other suggestions? Votes? cheers, jano [1] http://lists.opensuse.org/opensuse-softwaremgmt/2008-07/msg00004.html [2] http://lists.opensuse.org/zypp-devel/2008-06/msg00011.html [3] https://bugzilla.novell.com/show_bug.cgi?id=408858 -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
2008/7/16 Jano Kupec
Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes? I would argue the "lu" option isn't needed at all. I do "zypper -v up -t package" to update my system, first the updates are listed... if I don't want to update them just answer "no" to the "continue?" question. But if it's going to be mantained I like #1, but I would say 'up' should also receive an option to behave like 'lu'. A command to list updates that... you can't have doesn't makes sense. If you can show a _raw_ list you should also be able to use that list for update. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
Christian Morales Vega wrote:
2008/7/16 Jano Kupec
: Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes? I would argue the "lu" option isn't needed at all. I do "zypper -v up -t package" to update my system, first the updates are listed... if I don't want to update them just answer "no" to the "continue?" question.
Having a way to just list the available updates makes sense, e.g. for front-ends or scripts. But it is an interesting idea to drop 'lu' and add something like '--list' to 'up' to just print the list and quit. I see only one disadvantage: if we would want to extend the capabilities of the listing (e.g. --columns 'foo,bar'), we would end up mixing the listing option with update options. Which should not be that much of a problem after all...
But if it's going to be mantained I like #1, but I would say 'up' should also receive an option to behave like 'lu'. A command to list updates that... you can't have doesn't makes sense. If you can show a _raw_ list you should also be able to use that list for update.
Of course. But it does not make much sense, because you won't be able to actually install them (you will get dependency problem prompts), except the vednor-changing upgrades of course. cheers, jano -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
2008/7/16 Jano Kupec
Christian Morales Vega wrote:
2008/7/16 Jano Kupec
: Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes?
I would argue the "lu" option isn't needed at all. I do "zypper -v up -t package" to update my system, first the updates are listed... if I don't want to update them just answer "no" to the "continue?" question.
Having a way to just list the available updates makes sense, e.g. for front-ends or scripts. But it is an interesting idea to drop 'lu' and add something like '--list' to 'up' to just print the list and quit. I see only one disadvantage: if we would want to extend the capabilities of the listing (e.g. --columns 'foo,bar'), we would end up mixing the listing option with update options. Which should not be that much of a problem after all...
I don't have a strong opinion against any of the two options. I can say the first time I saw zypper -h output I was *very* confused... "update", "dist-upgrade", "patch-check", "list-updates", "patches"... everything looked like the same, and the "mini descriptions" from the side didn't help too much. So I suppose having a lot of commands is more confusing at first, but perhaps easier once you understand them.
But if it's going to be mantained I like #1, but I would say 'up' should also receive an option to behave like 'lu'. A command to list updates that... you can't have doesn't makes sense. If you can show a _raw_ list you should also be able to use that list for update.
Of course. But it does not make much sense, because you won't be able to actually install them (you will get dependency problem prompts), except the vednor-changing upgrades of course.
Uhm, true... I just though about 'lu' like "the same than 'up' but without repo priorities". But since there are some updates than can't be installed things are more complex. Between, even if 'lu' and 'up' end behaving the same way, YaST and KDE updater applet would still behave different because of bug #402770. If you only use zypper it isn't a problem, but if you mix them... -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
* Jano Kupec
Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes?
I would vote for #1 ;-) Klaus -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
On Thursday 17 July 2008 03:44:54 Klaus Kaempf wrote:
* Jano Kupec
[Jul 16. 2008 14:23]: Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes?
I would vote for #1 ;-)
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages) zypper dist-upgrade (for version upgrades). See https://bugzilla.novell.com/show_bug.cgi?id=403053 -- Regards Scott Newton -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
Scott Newton wrote:
On Thursday 17 July 2008 03:44:54 Klaus Kaempf wrote:
* Jano Kupec
[Jul 16. 2008 14:23]: Suggestions:
1) Make 'lu' list what 'up' would show as 'to be upgraded' in the summary + provide an option for 'lu' to show the _raw_ list of available updates as it does currently. 2) Tell why there is a difference (and what is the difference) between 'lu' and 'up' and suggest what to do.
#1 is my favorite :O) Any other suggestions? Votes? I would vote for #1 ;-)
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages) zypper dist-upgrade (for version upgrades).
Hm, this would be a reaction to the other thread 'patch updates vs. package updates'. Please repost it there. j. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
On Thu, Jul 17, 2008 at 06:50:50AM +1200, Scott Newton wrote:
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages)
No, please not 'update' and 'upgrade'. Everybody is going to confuse those two. My suggestion is: zypper update (for packages, like smart, yum, and the old rug) zypper patch (for patches) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
Michael Schroeder wrote:
On Thu, Jul 17, 2008 at 06:50:50AM +1200, Scott Newton wrote:
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages)
No, please not 'update' and 'upgrade'. Everybody is going to confuse those two.
My suggestion is:
zypper update (for packages, like smart, yum, and the old rug) zypper patch (for patches)
Cheers, Michael.
Agree -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
Hi, On Thu, 17 Jul 2008, Michael Schroeder wrote:
On Thu, Jul 17, 2008 at 06:50:50AM +1200, Scott Newton wrote:
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages)
No, please not 'update' and 'upgrade'. Everybody is going to confuse those two.
Yeah.
My suggestion is:
zypper update (for packages, like smart, yum, and the old rug) zypper patch (for patches)
Or "getpatches" or the like, I agree. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
Am Donnerstag, 17. Juli 2008 schrieb Michael Schroeder:
On Thu, Jul 17, 2008 at 06:50:50AM +1200, Scott Newton wrote:
My original suggestion was for: zypper update (for patches) zypper upgrade (for patches + packages)
No, please not 'update' and 'upgrade'. Everybody is going to confuse those two.
Also, please keep existing options as they are, otherwise existing scripts would have to be rewritten or could behave unexpected. Lars -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
participants (8)
-
Christian Morales Vega
-
Duncan Mac-Vicar Prett
-
Jano Kupec
-
Klaus Kaempf
-
Lars Behrens
-
Michael Matz
-
Michael Schroeder
-
Scott Newton