2011-04-02 00:26:42 +00:00
|
|
|
cdist-type__package_yum(7)
|
|
|
|
==========================
|
2016-05-20 06:50:56 +00:00
|
|
|
Manage packages with yum
|
2011-04-02 00:00:20 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
2011-04-02 00:00:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2011-04-02 00:26:42 +00:00
|
|
|
Yum is usually used on the Fedora distribution to manage packages.
|
2011-04-02 01:12:31 +00:00
|
|
|
If you specify an unknown package, yum will display the
|
|
|
|
slightly confusing error message "Error: Nothing to do".
|
2011-04-02 00:00:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2012-10-07 15:51:15 +00:00
|
|
|
None
|
2011-04-02 00:00:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2012-02-08 21:16:09 +00:00
|
|
|
If supplied, use the name and not the object id as the package name.
|
2011-04-02 00:00:20 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-07 17:15:15 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
2016-05-20 06:50:56 +00:00
|
|
|
url
|
2014-05-20 05:43:11 +00:00
|
|
|
URL to use for the package
|
2012-10-07 15:51:15 +00:00
|
|
|
|
2011-04-02 00:00:20 +00:00
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Ensure zsh in installed
|
|
|
|
__package_yum zsh --state present
|
2011-04-02 00:00:20 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# If you don't want to follow pythonX packages, but always use python
|
|
|
|
__package_yum python --state present --name python2
|
2011-04-02 00:00:20 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Remove obsolete package
|
|
|
|
__package_yum puppet --state absent
|
2014-05-20 05:43:11 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
__package epel-release-6-8 \
|
|
|
|
--url http://mirror.switch.ch/ftp/mirror/epel/6/i386/epel-release-6-8.noarch.rpm
|
2011-04-02 00:00:20 +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>`_
|
2011-04-02 00:00:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2012-09-21 09:32:04 +00:00
|
|
|
Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
|
2011-04-02 00:00:20 +00:00
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|