by capability and/or architecture and/or version
Together with a capability you can specify an architecture (such as i586 or x86_64)
and/or a version. The version must be preceded by an operator: < (lesser than),
<= (lesser than or equal), = (equal), >= (greater than or equal), > (greater than).
zypper install 'firefox.x86_64'
zypper install 'firefox>=3.5.3'
zypper install 'firefox.x86_64>=3.5.3'
by path to the RPM le
You can also specify a local or remote path to a package:
zypper install /tmp/install/MozillaFirefox.rpm
zypper install
URL_TO_FIREFOX_RPM
Replace
URL_TO_FIREFOX_RPM
with the actual download URL such as http://
download.opensuse.org/repositories/mozilla/SUSE_Factory/x86_64/
MozillaFirefox-3.5.3-1.3.x86_64.rpm.
To install and remove packages simultaneously use the +/- modiers. To install emacs
and remove vim simultaneously, use:
zypper install emacs -vim
To remove emacs and install vim simultaneously, use:
zypper remove emacs +vim
To prevent the package name starting with the - being interpreted as a command
option, always use it as the second argument. If this is not possible, precede it with
--:
zypper install -emacs +vim # Wrong
zypper install vim -emacs # Correct
zypper install -- -emacs +vim # same as above
zypper remove emacs +vim # same as above
If (together with a certain package) you automatically want to remove any packages
that become unneeded after removing the specied package, use the --clean-deps
option:
rm
package_name
--clean-deps
By default, Zypper asks for a conrmation before installing or removing a selected
package, or when a problem occurs. You can override this behavior using the
--non-interactive option. This option must be given before the actual command
(install, remove, and patch) as in the following:
zypper --non-interactive install
package_name
This option allows the use of Zypper in scripts and cron jobs.
Managing Software with Command Line Tools 113