Carlos E. R. composed on 2015-09-02 22:03 (UTC+0200):
Xen wrote: ...
Zypper has like 2 important actions (verbs) which are update and install, but they are not really disjunct and they do overlap. Apt has only two important verbs: update and upgrade. Update refreshed the repo/list, upgrade does what zypper update does. And then there is install, so you have three: update, upgrade and install.
Zypper has "refresh". You can disable automatic refresh of the repositories, and then order zypper to refresh them when you want.
I was wondering how long it would take for someone to mention this. Note that disabling is on a repo by repo basis, ultimately one optional line in each individual .repo file in /etc/zypp/repos.d/, which can be done with a text editor instead of zypper repo commands or yast. Enabling a repo can be as simple as copying a file from a repository to disk, or using another as a template for creating a similar one, or tacking on or removing a suffix from a .repo file. And, to upgrade to a newer release, sed can be run through the directory, followed by zypper ref, then zypper dup. I find zypper a masterful creation compared to apt, yum, dnf, et al. ...
install is different, it is used to install something that was not installed previously.
Again, zypper install is smarter than other package managers, updating/upgrading an already installed package if a newer is available, refreshing or not according to the individual repo's configurations, asking to proceed to update instead of announcing and exiting. I never did figure out debian pinning or RedHat/Fedora's confusing plugin equivalent. Zypper locking (aka yast tabooing) OTOH is straight forward. The biggest thing I don't like about zypper is that on 64 bit installations its search returns 32 bit packages, but a one line script 'zypper --no-refresh se -s $* | egrep 'x86|noarch' | egrep -v 'srcp|openSUSE-20' | sort' here is a good enough workaround for most of what I want from it. http://features.opensuse.org/316759 -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org