Zypper dup vs up

What is the command zypper dup (or zypper dist-upgrade) made for?

The help is not really clear to me, and I see they don’t react the same way:

[root@bora-bora raphael]# zypper up  
Chargement des données du dépôt...
Lecture des paquets installés...
Rien à faire.

nothing to do

vs

[root@bora-bora raphael]# zypper dup
Chargement des données du dépôt...
Lecture des paquets installés...
Avertissement : Vous êtes sur le point d'exécuter une mise à niveau de distribution avec tous les dépôts activés. Assurez-vous que ces dépôts sont compatibles avant de continuer. Reportez-vous à 'man zypper' pour obtenir plus d'informations sur cette commande.
Calcul de la mise à niveau de la distribution...

Les 8 paquets suivants vont être réinstallés :
  dnf dnf-automatic dnf-conf dnf-yum mpv python-dnf system-config-printer system-config-printer-gui

8 paquets à réinstaller.
Taille de téléchargement totale : 3,2 MiB. Déjà en cache : 0 B. Après l'opération, 25,0 B d'espace disque sera libéré.
Continuer ? [o/n/v/...? affiche toutes les options] (o):

8 packages to reinstall…

SDB:Zypper usage - openSUSE Wiki

While I undestand how it would work in theory with OpenSuse, I don’t understand how it works in practice with OMLx…

It’s the same difference as the one between “dnf upgrade” and “dnf distro-sync”.
Using the latter never hurts. Especially when using cooker or rolling (where major updates happen and where we occasionally do stuff like removing epochs to clean up, resulting in a package that is newer but seems older to rpm), use distro-sync/dup.
Most of the time there won’t be any difference, especially not on rock/release.

2 Likes