Hi, sorry for a silly question but what is a proper way to update Factory installation: zypper update or zypper dup? I’m thinking about switching to factory and pacman factory.
On 2014-09-23 19:56, eproxy wrote:
>
> Hi, sorry for a silly question but what is a proper way to update
> Factory installation: zypper update or zypper dup? I’m thinking about
> switching to factory and pacman factory.
dup.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
I use “zypper dup” from a console login – I use CTRL-ALT-F1 to get to the console login.
I have set the factory-packman repo to priority 98. The opensuse-factory repos are at priority 99. That way, “zypper dup” will always prefer packman when the package is available in either repo. As far as I know, it is best to use packman in that case.
Thus far it has worked.
I only once ran into a problem. That was back in early June or late May. I ran “zypper dup” in an “xterm” window under KDE. After it installed an X-update, it restarted X, and that killed the xterm and stopped the update from completing. When I attempted to resume, I discovered that “zypper” was broken (half-updated in an inconsistent way). I was able to recover. But that’s why I now run “zypper dup” from a console login, so that a restart of X won’t interrupt it.
Actually, before I do “zypper dup”, I am now doing:
zypper up libsolv-tools libzypp zypper rpm
That way, if there is an update related to “zypper”, I do that first before updating anything else.
Perfect answers, thank you!
One more question please.
The drawback is that if removed something from a standard build like amarok it will come back after I run ‘dup’. ?
What about update-alternatives priorities? Let’s say I have installed openjdk and oracle java with the highest priority, will dup change back the priorioty to openjdk?
After removing, search for it in Yast. Then right click and lock it (blacklist it). Then it won’t come back unless you manually reinstall.
What about update-alternatives priorities? Let’s say I have installed openjdk and oracle java with the highest priority, will dup change back the priorioty to openjdk?
I don’t know the answer to that. Any such change would depend on what is done by a post-install script that is run for that package (such as the openjdk package). In any case, you can run update-alternatives again if needed. My guess is that it won’t change back, but that’s only a guess.