2014-09-09 21:10:32 +00:00
|
|
|
cdist-type__package_pkgng_freebsd(7)
|
2016-05-20 06:50:56 +00:00
|
|
|
====================================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__package_pkgng_freebsd - Manage FreeBSD packages with pkg-ng
|
2014-09-09 21:10:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This type is usually used on FreeBSD to manage packages.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2014-09-09 21:10:32 +00:00
|
|
|
If supplied, use the name and not the object id as the package name.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
flavor
|
2014-09-09 21:10:32 +00:00
|
|
|
If supplied, use to avoid ambiguity.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
version
|
2014-09-09 21:10:32 +00:00
|
|
|
If supplied, use to install a specific version of the package named.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
repo
|
2014-09-09 21:10:32 +00:00
|
|
|
If supplied, use to install the package named from a particular repo.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2014-09-09 21:10:32 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
|
|
|
|
|
|
|
|
|
|
|
BOOLEAN PARAMETERS
|
|
|
|
------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
upgrade
|
2014-09-09 21:10:32 +00:00
|
|
|
If supplied, allow upgrading to the latest version of a package.
|
|
|
|
|
|
|
|
|
|
|
|
CAVEATS
|
|
|
|
-------
|
2016-05-20 06:50:56 +00:00
|
|
|
This type requires that repository definitions already exist in /etc/pkg/\*.conf.
|
2014-09-09 21:10:32 +00:00
|
|
|
Ensure that they exist prior to use of this type with __file.
|
|
|
|
|
|
|
|
pkg-ng can't upgrade a package to a specific version. If this type needs to
|
|
|
|
upgrade a package, it can only ugprade to the latest available version. If the
|
|
|
|
"upgrade" parameter is not given and an upgrade needs to occur, an error will result.
|
|
|
|
|
|
|
|
|
|
|
|
MESSAGES
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
install
|
2014-09-09 21:10:32 +00:00
|
|
|
The package was installed
|
2016-05-20 06:50:56 +00:00
|
|
|
remove
|
2014-09-09 21:10:32 +00:00
|
|
|
The package was removed
|
2016-05-20 06:50:56 +00:00
|
|
|
upgrade
|
2014-09-09 21:10:32 +00:00
|
|
|
The package was upgraded
|
2016-05-20 06:50:56 +00:00
|
|
|
exist
|
2014-09-09 21:10:32 +00:00
|
|
|
The package was already present and thus not installed
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Ensure zsh is installed
|
|
|
|
__package_pkgng_freebsd zsh --state present
|
2014-09-09 21:10:32 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Ensure vim is installed, use flavor no_x11
|
|
|
|
__package_pkgng_freebsd vim --state present --flavor no_x11
|
2014-09-09 21:10:32 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# If you don't want to follow pythonX packages, but always use python
|
|
|
|
__package_pkgng_freebsd python --state present --name python2
|
2014-09-09 21:10:32 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Install a package from a particular repository when multiples exist
|
|
|
|
__package_pkgng_freebsd bash --state present --repo myrepo
|
2014-09-09 21:10:32 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Remove obsolete package
|
|
|
|
__package_pkgng_freebsd puppet --state absent
|
2014-09-09 21:10:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-06-30 13:12:32 +00:00
|
|
|
:strong:`cdist-type__package`\ (7)
|
2016-06-17 19:28:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Jake Guffey <jake.guffey--@--eprotex.com>
|
2014-09-09 21:10:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2014 Jake Guffey. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|