[opensuse] difference between dup and up (was: Updates for 11.2 stable, are there any?)



On 12/16/2009 10:05 AM, Roger Oberholtzer wrote:
On Tue, 2009-12-15 at 21:13 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Tuesday, 2009-12-15 at 17:11 +0100, Roger Oberholtzer wrote:

On Tue, 2009-12-15 at 23:05 +0700, Constant Brouerius van Nidek wrote:

Thanks for the information. Indeed there were three patches waiting which
zypper update did not find.

What would be the danger of always doing zupper dup instead of zypper
update? I know that dup seems more thorough. But perhaps that could lead
to a problem?

Many... it stands for "distribution upgrade", and will change whatever you
have installed with the newest package found on any of the configured
repos, regardless of vendor changes.

This I understand. But as long as I (1) have 11.2 installed and (2) use
repos for 11.2, what is the difference? I can only see that it will do
vendor changes without asking. I see that update can use a file of
allowed vendor changes, which it will then allow to be updated. So, for
those vendors, update and dup would act the same?

Let's pretend I made a vendor file that had all the vendors in the 11.2
repos I have enabled. Would update and dup then do basically the same
thing?

No. From man zypper:

dist-upgrade (dup) [options]
Perform a distribution upgrade. This command
applies the state of (specified) reposito-
ries onto the system; upgrades (or even
downgrades) installed packages to versions
found in repositories, removes packages that
are no longer in the repositories and pose a
dependency problem for the upgrade, handles
package splits and renames, etc.

update (up) [options] [packagename] ...
Update installed packages with newer ver-
sions, where possible.

This command will not update packages which
would require change of package vendor
unless the vendor is specified in
/etc/zypp/vendors.d, or which would require
manual resolution of problems with dependen-
cies.

So, for example, suppose you have 11.2 official repos + a repo with new
KDE packages, and you install a bunch of the newer KDE stuff. Now, if
you for some reason disable the KDE repo (e.g. because it's
inaccessible), simple 'zypper dup' will downgrade your KDE packages to
the older official versions found in the enabled repos.

Zypper up rarely downgrades or removes anything, it simply looks for
newer versions and if there's no problem with vendors or dependencies,
installs them.

There's no problem with using dup, you just need to keep the above in
mind. After all, there's always the 'Continue?' prompt :O)

--
cheers,
jano


Ján Kupec
YaST team
---------------------------------------------------------(PGP)---
Key ID: 637EE901
Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901
---------------------------------------------------------(IRC)---
Server: irc.freenode.net
Nick: jniq
Channels: #zypp #yast #suse #susecz
---------------------------------------------------------(EOF)---

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages