2012-02-08 21:16:09 +00:00
|
|
|
cdist-type__package(7)
|
|
|
|
======================
|
2016-05-20 06:50:56 +00:00
|
|
|
Manage packages
|
2011-03-15 16:01:35 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This cdist type allows you to install or uninstall packages on the target.
|
2015-05-19 09:58:50 +00:00
|
|
|
It dispatches the actual work to the package system dependent types.
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2012-10-07 15:51:15 +00:00
|
|
|
None
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2012-02-08 21:16:09 +00:00
|
|
|
The name of the package to install. Default is to use the object_id as the
|
|
|
|
package name.
|
2016-05-20 06:50:56 +00:00
|
|
|
version
|
2012-02-08 21:16:09 +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.
|
2016-05-20 06:50:56 +00:00
|
|
|
type
|
2012-02-08 21:16:09 +00:00
|
|
|
The package type to use. Default is determined based on the $os explorer
|
|
|
|
variable.
|
2016-05-20 06:50:56 +00:00
|
|
|
e.g.
|
|
|
|
* __package_apt for Debian
|
|
|
|
* __package_emerge for Gentoo
|
2011-03-15 16:01:35 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-07 18:22:02 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
2012-10-07 15:51:15 +00:00
|
|
|
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Install the package vim on the target
|
|
|
|
__package vim --state present
|
2011-03-15 16:01:35 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Same but install specific version
|
|
|
|
__package vim --state present --version 7.3.50
|
2011-03-15 16:01:35 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Force use of a specific package type
|
|
|
|
__package vim --state present --type __package_apt
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
- `cdist-type(7) <cdist-type.html>`_
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2011 Steven Armstrong. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|