System Tools
zypper(8)
SYNTAX
zypper [--global-options] [command] [--command-options] [command-arguments]
zypper --help
DESCRIPTION
zypper is a command-line interface to ZYPP system management library.
It can be used to install, update, remove software, manage installation
sources, perform various searches, and more.
zypper is designed to be compatible with rug, which is a command-line
interface to the ZENworks Linux Management (ZLM) agent. Compared to
rug, zypper does not need the ZLM daemon to run, and is intented to
provide more and improved functionality.
COMMANDS
zypper provides a number of commands. Each command accepts the option
flags listed in the GLOBAL OPTIONS section. In addition, many commands
have specific option flags, which are listed in this section.
General Commands
shell (sh)
Starts a shell for entering multiple commands in one session.
(NEW, beware of bugs!)
Package Management Commands
zypper works with several types of resource objects, called resolvables. A resolvable is a package, patch, pattern, language, or a product.
package - all RPM packages including patch and delta packages
patch - update of the packages, it can include special scripts and messages
pattern - group of packages
language - group of packages with language support
product - group of packages, which are necessary to install a product
/var/lib/zypp/cache.
GLOBAL OPTIONS
-h, --help
Help. If a command is specified together with --help option,
command specific help is displayed.
-V, --version
Print zypper version number and exit.
-v, --verbose
Increase verbosity. For debugging output specify this option
twice.
-t, --terse
Terse output for machine consumption.
-s, --table-style
Specifies table style to use. Table style is identified by an
integer number. TODO
-r, --rug-compatible
Turns on rug compatibility. See compatibility notes next to
affected commands.
FILES
/var/lib/zypp/cache
Directory for storing metadata contained
sources.
in
installation
EXIT CODES
There are several exit codes defined for zypper for use e.g. within
scripts. These codes are defined in header file src/zmart.h found in
zypper source package. Codes from interval (1-5) denote an error, numbers (100-103) provide a specific information, 0 represents a normal
successfull run. Following is a list of these codes with descriptions.
0 - ZYPPER_EXIT_OK
Successfull run of zypper with no special info.
1 - ZYPPER_EXIT_ERR_BUG
Unexpected situation occured, probably caused by a bug.
2 - ZYPPER_EXIT_ERR_SYNTAX
zypper was invoked with an invalid command or option, or a bad
syntax.
3 - ZYPPER_EXIT_ERR_INVALID_ARGS
Some of provided arguments were invalid. E.g. an invalid URI was
provided to the service-add command.
4 - ZYPPER_EXIT_ERR_ZYPP
A problem reported by ZYPP library. E.g. another instance of
ZYPP is running.
5 - ZYPPER_EXIT_ERR_PRIVILEGES
User invoking zypper has insufficient privileges for specified
operation.
100 - ZYPPER_EXIT_INF_UPDATE_NEEDED
Returned by the patch-check command if there are patches available for installation.
101 - ZYPPER_EXIT_INF_SEC_UPDATE_NEEDED
Returned by the patch-check command if there are security
patches available for installation.
102 - ZYPPER_EXIT_INF_REBOOT_NEEDED
Returned after a successfull installation of a patch which
requires reboot of computer.
103 - ZYPPER_EXIT_INF_RESTART_NEEDED
Returned after a successfull installation of a patch which
requires restart of the package manager itself. This means that
one of patches to be installed affects the package manager
itself and the command used (e.g. zypper update) needs to be
executed once again to install any remaining patches.