2012-06-15 08:23:19 +00:00
|
|
|
cdist-type__package_zypper(7)
|
|
|
|
=============================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__package_zypper - Manage packages with zypper
|
2012-06-15 08:23:19 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Daniel Heule <hda--@--sfs.biz>
|
2012-06-15 08:23:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Zypper is usually used on the SuSE distribution to manage packages.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2012-10-07 15:51:15 +00:00
|
|
|
None
|
2012-06-15 08:23:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2012-06-15 08:23:19 +00:00
|
|
|
If supplied, use the name and not the object id as the package name.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-07 17:15:15 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
2012-10-07 15:51:15 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
version
|
2013-12-11 16:11:22 +00:00
|
|
|
The version of the package to install. Default is to install the version
|
2015-05-19 09:58:50 +00:00
|
|
|
chosen by the local package manager. For a list of available versions,
|
2013-12-12 08:29:22 +00:00
|
|
|
have a look at the output of "zypper se -s packagename"
|
2013-12-11 16:11:22 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
ptype
|
2013-12-10 15:57:02 +00:00
|
|
|
Either "package", "patch", "pattern", "product" or "srcpackage", defaults to "package". For a description see man zypper.
|
|
|
|
|
2012-06-15 08:23:19 +00:00
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Ensure zsh is installed
|
|
|
|
__package_zypper zsh --state present
|
2012-06-15 08:23:19 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# If you don't want to follow pythonX packages, but always use python
|
|
|
|
__package_zypper python --state present --name python2
|
2012-06-15 08:23:19 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Ensure binutils is installed and the version is forced to be 2.23.1-0.19.2
|
|
|
|
__package_zypper binutils --state present --version 2.23.1-0.19.2
|
2013-12-11 16:11:22 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Remove package
|
|
|
|
__package_zypper cfengine --state absent
|
2013-12-10 15:57:02 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# install all packages which belongs to pattern x11
|
|
|
|
__package_zypper x11 --ptype pattern --state present
|
2012-06-15 08:23:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
- `cdist-type(7) <cdist-type.html>`_
|
|
|
|
- `cdist-type__package(7) <cdist-type__package.html>`_
|
2012-06-15 08:23:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2013-12-11 16:11:22 +00:00
|
|
|
Copyright \(C) 2012 Nico Schottelius.
|
|
|
|
Copyright \(C) 2013 Daniel Heule.
|
|
|
|
Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).
|