Apply switch to Packman repository only once all others are done:
zypper dup --from packman --allow-vendor-change
Finally update system packages
Only exception is Mozilla, which I don’t apply switch since the Firefox-ESR switching since last openSUSE release…
Now, global question would be, can this way be quite correct in general?
Since years ago when I was introduced to openSUSE, I was taught the concept of always leaving Packman repo at last, and before updating general packages, but I was never explained why (I guess because Packman used to break, or still breaks, more packages than other repos?)
Also, is this way still right even when switching repos sometimes downgrade packages?
Finally, I see there are some newer Firefox packages in the Mozilla repo, which are not called “beta” or the like. I know openSUSE by default uses Firefox-ESR, but, is it safe now to use the newer Firefox packages from the Mozilla repo?
for updating. The “zypper dup” was needed when first switching to other repos. But, once that is done, “zypper up” should be sufficient. The vendor-stickiness should take care of updating from the right repo.
Maybe you can occasionally try the switch move to packman – in case a new package has been included in packman. But once every 2-3 months should be sufficient for just checking (unless something is broken and needs that as an immediate fix).
As @nrickert describes,
updating should no longer be a complex exercise.
If you’re concerned about how to address a “bad update” problem,
For the very, very rare occasion when something might happen, if you installed your root partition with BTRFS, become familiar with the simple steps to roll back (snapshots are created automatically before and after every zypper package action, so no need generally to make snapshots manually).
So “zypper dup” is now typically needed just once, or once in a while since installing openSUSE, and afterwards “zypper up” kind of makes the dup thing automatically? From my repos above, consider all have the same 99 priority…
Could it be that leaving Packman at last was also a “thing of the past”?
What about the Mozilla repository? Is it safe now to switch from openSUSE’s ESR version to Mozilla’s mainline?
When you’re moving from one version of openSUSE to another or if you want to make a major change of some sort, the “dup” ie “distribution upgrade” is used. If you had TW installed, a full version is released every few days so “dup” is used, but LEAP releases a new version only every 12-18 months or so… When you want to “update” to acquire relatively minor changes (patches, features, etc) but stay within that openSUSE version, you “update” ie “up”
In other words, although other distros often don’t distinguish between upgrading and updating, we do in openSUSE.
Yes, IMO repository order is now insignificant, and in general even modifying repository priorities can do more harm than good. Vendor and repository stickiness (typically using the --from option) is the recommended way to configure a preference. But, unless you have a specific need, it’s generally best to just follow recommendations and typically allow the Package Maintainers to decide for you when to switch.
Probably depends on your reason for possibly preferring one or the other, and Users post about wanting one or the other periodically.
Having been using most types of S.u.S.E/SuSE/openSUSE distros since 1996, I’ve always been partial to YaST’s style of displaying any available updates together with package information, lists of patches applied for bugfixes, SVE number and descriptions of the issues prompting the bugfixes as well as any automatically resolvable dependencies to possibly unwanted, superfluous (looking and you, *-lang packages), locked (»taboo«) or already installed packages. (See this thread from 2013 for further infos and a nice screenshot of the YaST [i]Online Update module.)
Admittedly it’s not for everybody — especially for server environments where automated, pre-tested updates on many machines in parallel are often obligatory, or if you use Tumbleweed where every update is a distro upgrade. But for somebody interested in the dynamics of the software development/-testing/-maintenance processes and how software evolve, how packages depend on each other (and why), what recommendations the dependency solver has for my systems (YaST Online Update, menu »Extras«) which packages may be optional etc., then the YaST Online Update module provides so much more instant information and feedback than zypper does by default… with a bit of eye candy on top.
Updating my Leap installations with YaST Online Update is one of the few exceptions in my otherwise quite xterm-, bash-, ruby- and vim-centric activities. However, I do check manually if any updates are pending with…
It also runs quite a bit quicker than »zypper lifecycle« (don’t even know how I started using that one; my .bash_history recorded me looking into »/usr/lib/systemd/system/lifecycle-report.service« some time ago.I remember looking at Ruby source code at some level).
I’ll try out both commands side by side in the future — no pending updates this time around. Cheers!