cdist/cdist/conf/type/__package_zypper/man.rst

70 lines
1.7 KiB
ReStructuredText
Raw Normal View History

cdist-type__package_zypper(7)
=============================
NAME
----
cdist-type__package_zypper - Manage packages with zypper
2016-05-20 06:50:56 +00:00
Daniel Heule <hda--@--sfs.biz>
DESCRIPTION
-----------
Zypper is usually used on the SuSE distribution to manage packages.
REQUIRED PARAMETERS
-------------------
None
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
name
If supplied, use the name and not the object id as the package name.
2016-05-20 06:50:56 +00:00
state
Either "present" or "absent", defaults to "present"
2016-05-20 06:50:56 +00:00
version
The version of the package to install. Default is to install the version
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"
2016-05-20 06:50:56 +00:00
ptype
Either "package", "patch", "pattern", "product" or "srcpackage", defaults to "package". For a description see man zypper.
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Ensure zsh is installed
__package_zypper zsh --state present
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
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
2016-05-20 06:50:56 +00:00
# Remove package
__package_zypper cfengine --state absent
2016-05-20 06:50:56 +00:00
# install all packages which belongs to pattern x11
__package_zypper x11 --ptype pattern --state present
SEE ALSO
--------
2016-05-20 06:50:56 +00:00
- `cdist-type(7) <cdist-type.html>`_
- `cdist-type__package(7) <cdist-type__package.html>`_
COPYING
-------
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).