Resource Type: package

NOTE: This page was generated from the Puppet source code on 2018-08-28 06:48:02 -0700

package

Description

Manage packages. There is a basic dichotomy in package support right now: Some package types (such as yum and apt) can retrieve their own package files, while others (such as rpm and sun) cannot. For those package formats that cannot retrieve their own files, you can use the source parameter to point to the correct file.

Puppet will automatically guess the packaging format that you are using based on the platform you are on, but you can override it using the provider parameter; each provider defines what it requires in order to function, and you must meet those requirements to use a given provider.

You can declare multiple package resources with the same name, as long as they specify different providers and have unique titles.

Note that you must use the title to make a reference to a package resource; Package[<NAME>] is not a synonym for Package[<TITLE>] like it is for many other resource types.

Autorequires: If Puppet is managing the files specified as a package’s adminfile, responsefile, or source, the package resource will autorequire those files.

Attributes

package { 'resource title':
  name                 => # (namevar) The package name.  This is the name that the...
  provider             => # (namevar) The specific backend to use for this `package...
  ensure               => # What state the package should be in. On...
  adminfile            => # A file containing package defaults for...
  allow_virtual        => # Specifies if virtual package names are allowed...
  allowcdrom           => # Tells apt to allow cdrom sources in the...
  category             => # A read-only parameter set by the...
  configfiles          => # Whether to keep or replace modified config files 
  description          => # A read-only parameter set by the...
  flavor               => # OpenBSD supports 'flavors', which are further...
  install_options      => # An array of additional options to pass when...
  instance             => # A read-only parameter set by the...
  package_settings     => # Settings that can change the contents or...
  platform             => # A read-only parameter set by the...
  reinstall_on_refresh => # Whether this resource should respond to refresh...
  responsefile         => # A file containing any necessary answers to...
  root                 => # A read-only parameter set by the...
  source               => # Where to find the package file. This is only...
  status               => # A read-only parameter set by the...
  uninstall_options    => # An array of additional options to pass when...
  vendor               => # A read-only parameter set by the...
  # ...plus any applicable metaparameters.
}

name

(Namevar: If omitted, this attribute’s value defaults to the resource’s title.)

The package name. This is the name that the packaging system uses internally, which is sometimes (especially on Solaris) a name that is basically useless to humans. If a package goes by several names, you can use a single title and then set the name conditionally:

# In the 'openssl' class
$ssl = $operatingsystem ? {
  solaris => SMCossl,
  default => openssl
}

package { 'openssl':
  ensure => installed,
  name   => $ssl,
}

...

$ssh = $operatingsystem ? {
  solaris => SMCossh,
  default => openssh
}

package { 'openssh':
  ensure  => installed,
  name    => $ssh,
  require => Package['openssl'],
}

(↑ Back to package attributes)

provider

(Secondary namevar: This resource type allows you to manage multiple resources with the same name as long as their providers are different.)

The specific backend to use for this package resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

Available providers are:

(↑ Back to package attributes)

ensure

(Property: This attribute represents concrete state on the target system.)

What state the package should be in. On packaging systems that can retrieve new packages on their own, you can choose which package to retrieve by specifying a version number or latest as the ensure value. On packaging systems that manage configuration files separately from “normal” system files, you can uninstall config files by specifying purged as the ensure value. This defaults to installed.

Version numbers must match the full version to install, including release if the provider uses a release moniker. Ranges or semver patterns are not accepted except for the gem package provider. For example, to install the bash package from the rpm bash-4.1.2-29.el6.x86_64.rpm, use the string '4.1.2-29.el6'.

Default: installed

Allowed values:

  • present
  • absent
  • purged
  • held
  • installed
  • latest
  • /./

(↑ Back to package attributes)

adminfile

A file containing package defaults for installing packages.

This attribute is only used on Solaris. Its value should be a path to a local file stored on the target system. Solaris’s package tools expect either an absolute file path or a relative path to a file in /var/sadm/install/admin.

The value of adminfile will be passed directly to the pkgadd or pkgrm command with the -a <ADMINFILE> option.

(↑ Back to package attributes)

allow_virtual

Specifies if virtual package names are allowed for install and uninstall.

Default: true

Allowed values:

  • true or yes
  • false or no

Requires features virtual_packages.

(↑ Back to package attributes)

allowcdrom

Tells apt to allow cdrom sources in the sources.list file. Normally apt will bail if you try this.

Allowed values:

  • true
  • false

(↑ Back to package attributes)

category

A read-only parameter set by the package.

(↑ Back to package attributes)

configfiles

Whether to keep or replace modified config files when installing or upgrading a package. This only affects the apt and dpkg providers. Defaults to keep.

Default: keep

Allowed values:

  • keep
  • replace

(↑ Back to package attributes)

description

A read-only parameter set by the package.

(↑ Back to package attributes)

flavor

OpenBSD supports ‘flavors’, which are further specifications for which type of package you want.

(↑ Back to package attributes)

install_options

An array of additional options to pass when installing a package. These options are package-specific, and should be documented by the software vendor. One commonly implemented option is INSTALLDIR:

package { 'mysql':
  ensure          => installed,
  source          => 'N:/packages/mysql-5.5.16-winx64.msi',
  install_options => [ '/S', { 'INSTALLDIR' => 'C:\mysql-5.5' } ],
}

Each option in the array can either be a string or a hash, where each key and value pair are interpreted in a provider specific way. Each option will automatically be quoted when passed to the install command.

With Windows packages, note that file paths in an install option must use backslashes. (Since install options are passed directly to the installation command, forward slashes won’t be automatically converted like they are in file resources.) Note also that backslashes in double-quoted strings must be escaped and backslashes in single-quoted strings can be escaped.

Requires features install_options.

(↑ Back to package attributes)

instance

A read-only parameter set by the package.

(↑ Back to package attributes)

package_settings

(Property: This attribute represents concrete state on the target system.)

Settings that can change the contents or configuration of a package.

The formatting and effects of package_settings are provider-specific; any provider that implements them must explain how to use them in its documentation. (Our general expectation is that if a package is installed but its settings are out of sync, the provider should re-install that package with the desired settings.)

An example of how package_settings could be used is FreeBSD’s port build options — a future version of the provider could accept a hash of options, and would reinstall the port if the installed version lacked the correct settings.

package { 'www/apache22':
  package_settings => { 'SUEXEC' => false }
}

Again, check the documentation of your platform’s package provider to see the actual usage.

Requires features package_settings.

(↑ Back to package attributes)

platform

A read-only parameter set by the package.

(↑ Back to package attributes)

reinstall_on_refresh

Whether this resource should respond to refresh events (via subscribe, notify, or the ~> arrow) by reinstalling the package. Only works for providers that support the reinstallable feature.

This is useful for source-based distributions, where you may want to recompile a package if the build options change.

If you use this, be careful of notifying classes when you want to restart services. If the class also contains a refreshable package, doing so could cause unnecessary re-installs.

Default: false

Allowed values:

  • true
  • false

(↑ Back to package attributes)

responsefile

A file containing any necessary answers to questions asked by the package. This is currently used on Solaris and Debian. The value will be validated according to system rules, but it should generally be a fully qualified path.

(↑ Back to package attributes)

root

A read-only parameter set by the package.

(↑ Back to package attributes)

source

Where to find the package file. This is only used by providers that don’t automatically download packages from a central repository. (For example: the yum and apt providers ignore this attribute, but the rpm and dpkg providers require it.)

Different providers accept different values for source. Most providers accept paths to local files stored on the target system. Some providers may also accept URLs or network drive paths. Puppet will not automatically retrieve source files for you, and usually just passes the value of source to the package installation command.

You can use a file resource if you need to manually copy package files to the target system.

(↑ Back to package attributes)

status

A read-only parameter set by the package.

(↑ Back to package attributes)

uninstall_options

An array of additional options to pass when uninstalling a package. These options are package-specific, and should be documented by the software vendor. For example:

package { 'VMware Tools':
  ensure            => absent,
  uninstall_options => [ { 'REMOVE' => 'Sync,VSS' } ],
}

Each option in the array can either be a string or a hash, where each key and value pair are interpreted in a provider specific way. Each option will automatically be quoted when passed to the uninstall command.

On Windows, this is the only place in Puppet where backslash separators should be used. Note that backslashes in double-quoted strings must be double-escaped and backslashes in single-quoted strings may be double-escaped.

Requires features uninstall_options.

(↑ Back to package attributes)

vendor

A read-only parameter set by the package.

(↑ Back to package attributes)

Providers

aix

Installation from an AIX software directory, using the AIX installp command. The source parameter is required for this provider, and should be set to the absolute path (on the puppet agent machine) of a directory containing one or more BFF package files.

The installp command will generate a table of contents file (named .toc) in this directory, and the name parameter (or resource title) that you specify for your package resource must match a package name that exists in the .toc file.

Note that package downgrades are not supported; if your resource specifies a specific version number and there is already a newer version of the package installed on the machine, the resource will fail with an error message.

  • Required binaries: /usr/bin/lslpp, /usr/sbin/installp
  • Confined to: operatingsystem == [ :aix ]
  • Default for: operatingsystem == aix
  • Supported features: installable, uninstallable, upgradeable, versionable

appdmg

Package management which copies application bundles to a target.

  • Required binaries: /usr/bin/hdiutil, /usr/bin/curl, /usr/bin/ditto
  • Confined to: operatingsystem == darwin, feature == cfpropertylist
  • Supported features: installable

apple

Package management based on OS X’s built-in packaging system. This is essentially the simplest and least functional package system in existence – it only supports installation; no deletion or upgrades. The provider will automatically add the .pkg extension, so leave that off when specifying the package name.

  • Required binaries: /usr/sbin/installer
  • Confined to: operatingsystem == darwin
  • Supported features: installable

apt

Package management via apt-get.

This provider supports the install_options attribute, which allows command-line flags to be passed to apt-get. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: /usr/bin/apt-get, /usr/bin/apt-cache, /usr/bin/debconf-set-selections
  • Default for: osfamily == debian
  • Supported features: holdable, install_options, installable, purgeable, uninstallable, upgradeable, versionable

aptitude

Package management via aptitude.

  • Required binaries: /usr/bin/aptitude, /usr/bin/apt-cache
  • Supported features: holdable, installable, purgeable, uninstallable, upgradeable, versionable

aptrpm

Package management via apt-get ported to rpm.

  • Required binaries: apt-get, apt-cache, rpm
  • Supported features: installable, purgeable, uninstallable, upgradeable, versionable

blastwave

Package management using Blastwave.org’s pkg-get command on Solaris.

  • Required binaries: pkgget
  • Confined to: osfamily == solaris
  • Supported features: installable, uninstallable, upgradeable

dnf

Support via dnf.

Using this provider’s uninstallable feature will not remove dependent packages. To remove dependent packages with this provider use the purgeable feature, but note this feature is destructive and should be used with the utmost care.

This provider supports the install_options attribute, which allows command-line flags to be passed to dnf. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: dnf, rpm
  • Default for operatingsystem == fedora and operatingsystemmajrelease == 22, 23, 24, 25, 26, 27, 28, 29, 30.
  • Supported features: install_options, installable, purgeable, uninstallable, upgradeable, versionable, virtual_packages

dpkg

Package management via dpkg. Because this only uses dpkg and not apt, you must specify the source of any packages you want to manage.

  • Required binaries: /usr/bin/dpkg, /usr/bin/dpkg-deb, /usr/bin/dpkg-query
  • Supported features: holdable, installable, purgeable, uninstallable, upgradeable

fink

Package management via fink.

  • Required binaries: /sw/bin/fink, /sw/bin/apt-get, /sw/bin/apt-cache, /sw/bin/dpkg-query
  • Supported features: holdable, installable, purgeable, uninstallable, upgradeable, versionable

freebsd

The specific form of package management on FreeBSD. This is an extremely quirky packaging system, in that it freely mixes between ports and packages. Apparently all of the tools are written in Ruby, so there are plans to rewrite this support to directly use those libraries.

  • Required binaries: /usr/sbin/pkg_info, /usr/sbin/pkg_add, /usr/sbin/pkg_delete
  • Confined to: operatingsystem == freebsd
  • Supported features: installable, purgeable, uninstallable, upgradeable.

gem

Ruby Gem support. If a URL is passed via source, then that URL is appended to the list of remote gem repositories; to ensure that only the specified source is used, also pass --clear-sources via install_options. If source is present but is not a valid URL, it will be interpreted as the path to a local gem file. If source is not present, the gem will be installed from the default gem repositories. Note that to modify this for Windows, it has to be a valid URL.

This provider supports the install_options and uninstall_options attributes, which allow command-line flags to be passed to the gem command. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: gem
  • Supported features: install_options, installable, uninstall_options, uninstallable, upgradeable, versionable

hpux

HP-UX’s packaging system.

  • Required binaries: /usr/sbin/swinstall, /usr/sbin/swlist, /usr/sbin/swremove
  • Confined to: operatingsystem == hp-ux
  • Default for operatingsystem == hp-ux.
  • Supported features: installable, uninstallable

macports

Package management using MacPorts on OS X.

Supports MacPorts versions and revisions, but not variants. Variant preferences may be specified using the MacPorts variants.conf file.

When specifying a version in the Puppet DSL, only specify the version, not the revision. Revisions are only used internally for ensuring the latest version/revision of a port.

  • Required binaries: /opt/local/bin/port
  • Confined to: operatingsystem == darwin
  • Supported features: installable, uninstallable, upgradeable, versionable

nim

Installation from an AIX NIM LPP source. The source parameter is required for this provider, and should specify the name of a NIM lpp_source resource that is visible to the puppet agent machine. This provider supports the management of both BFF/installp and RPM packages.

Note that package downgrades are not supported; if your resource specifies a specific version number and there is already a newer version of the package installed on the machine, the resource will fail with an error message.

  • Required binaries: /usr/sbin/nimclient, /usr/bin/lslpp, rpm
  • Confined to: exists == /etc/niminfo
  • Supported features: installable, uninstallable, upgradeable, versionable

openbsd

OpenBSD’s form of pkg_add support.

This provider supports the install_options and uninstall_options attributes, which allow command-line flags to be passed to pkg_add and pkg_delete. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: pkg_info, pkg_add, pkg_delete
  • Confined to: operatingsystem == openbsd
  • Default for: operatingsystem == openbsd
  • Supported features: install_options, installable, purgeable, uninstall_options, uninstallable, upgradeable, versionable

opkg

Opkg packaging support. Common on OpenWrt and OpenEmbedded platforms

  • Required binaries: opkg
  • Confined to: operatingsystem == openwrt
  • Default for operatingsystem == openwrt.
  • Supported features: installable, uninstallable, upgradeable

pacman

Support for the Package Manager Utility (pacman) used in Archlinux.

This provider supports the install_options attribute, which allows command-line flags to be passed to pacman. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: /usr/bin/pacman
  • Confined to: operatingsystem == [:archlinux, :manjarolinux]
  • Default for: ["operatingsystem", "[:archlinux, :manjarolinux]"] ==
  • Supported features: install_options, installable, uninstall_options, uninstallable, upgradeable, virtual_packages

pip

Python packages via pip.

This provider supports the install_options attribute, which allows command-line flags to be passed to pip. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Supported features: install_options, installable, uninstallable, upgradeable, versionable

pip3

Python packages via pip3.

This provider supports the install_options attribute, which allows command-line flags to be passed to pip3. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Supported features: install_options, installable, uninstallable, upgradeable, versionable

pkg

OpenSolaris image packaging system. See pkg(5) for more information.

  • Required binaries: /usr/bin/pkg
  • Confined to: osfamily == solaris
  • Default for: ["osfamily", "solaris"] == ["kernelrelease", "['5.11', '5.12']"]
  • Supported features: holdable, installable, uninstallable, upgradeable, versionable

pkgdmg

Package management based on Apple’s Installer.app and DiskUtility.app.

This provider works by checking the contents of a DMG image for Apple pkg or mpkg files. Any number of pkg or mpkg files may exist in the root directory of the DMG file system, and Puppet will install all of them. Subdirectories are not checked for packages.

This provider can also accept plain .pkg (but not .mpkg) files in addition to .dmg files.

Notes:

  • The source attribute is mandatory. It must be either a local disk path or an HTTP, HTTPS, or FTP URL to the package.
  • The name of the resource must be the filename (without path) of the DMG file.
  • When installing the packages from a DMG, this provider writes a file to disk at /var/db/.puppet_pkgdmg_installed_NAME. If that file is present, Puppet assumes all packages from that DMG are already installed.
  • This provider is not versionable and uses DMG filenames to determine whether a package has been installed. Thus, to install new a version of a package, you must create a new DMG with a different filename.

  • Required binaries: /usr/sbin/installer, /usr/bin/hdiutil, /usr/bin/curl
  • Confined to: operatingsystem == darwin, feature == cfpropertylist
  • Default for: operatingsystem == darwin
  • Supported features: installable

pkgin

Package management using pkgin, a binary package manager for pkgsrc.

  • Required binaries: pkgin
  • Default for: operatingsystem == smartos, netbsd
  • Supported features: installable, uninstallable, upgradeable, versionable

pkgng

A PkgNG provider for FreeBSD and DragonFly.

  • Required binaries: /usr/local/sbin/pkg
  • Confined to: operatingsystem == [:freebsd, :dragonfly]
  • Default for: operatingsystem == freebsd, dragonfly.
  • Supported features: installable, uninstallable, upgradeable, versionable.

pkgutil

Package management using Peter Bonivart’s pkgutil command on Solaris.

  • Required binaries: pkgutil
  • Confined to: osfamily == solaris
  • Supported features: installable, uninstallable, upgradeable

portage

Provides packaging support for Gentoo’s portage system.

This provider supports the install_options and uninstall_options attributes, which allows command-line flags to be passed to emerge. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: /usr/bin/eix-update, /usr/bin/eix, /usr/bin/emerge, /usr/bin/qatom
  • Confined to: operatingsystem == gentoo
  • Default for: operatingsystem == gentoo
  • Supported features: install_options, installable, purgeable, reinstallable, uninstall_options, uninstallable, upgradeable, versionable, virtual_packages

ports

Support for FreeBSD’s ports. Note that this, too, mixes packages and ports.

  • Required binaries: /usr/local/sbin/portupgrade, /usr/local/sbin/portversion, /usr/local/sbin/pkg_deinstall, /usr/sbin/pkg_info
  • Supported features: installable, purgeable, uninstallable, upgradeable

portupgrade

Support for FreeBSD’s ports using the portupgrade ports management software. Use the port’s full origin as the resource name. eg (ports-mgmt/portupgrade) for the portupgrade port.

  • Required binaries: /usr/local/sbin/portupgrade, /usr/local/sbin/portinstall, /usr/local/sbin/portversion, /usr/local/sbin/pkg_deinstall, /usr/sbin/pkg_info
  • Supported features: installable, uninstallable, upgradeable

puppet_gem

Puppet Ruby Gem support. This provider is useful for managing gems needed by the ruby provided in the puppet-agent package.

  • Required binaries: /opt/puppetlabs/puppet/bin/gem
  • Supported features: install_options, installable, uninstall_options, uninstallable, upgradeable, versionable

rpm

RPM packaging support; should work anywhere with a working rpm binary.

This provider supports the install_options and uninstall_options attributes, which allow command-line flags to be passed to rpm. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: rpm
  • Supported features: install_options, installable, uninstall_options, uninstallable, upgradeable, versionable, virtual_packages

rug

Support for suse rug package manager.

  • Required binaries: /usr/bin/rug, rpm
  • Confined to: operatingsystem == [:suse, :sles]
  • Supported features: installable, uninstallable, upgradeable, versionable

sun

Sun’s packaging system. Requires that you specify the source for the packages you’re managing.

This provider supports the install_options attribute, which allows command-line flags to be passed to pkgadd. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: /usr/bin/pkginfo, /usr/sbin/pkgadd, /usr/sbin/pkgrm
  • Confined to: osfamily == solaris
  • Default for: osfamily == solaris
  • Supported features: install_options, installable, uninstallable, upgradeable

sunfreeware

Package management using sunfreeware.com’s pkg-get command on Solaris. At this point, support is exactly the same as blastwave support and has not actually been tested.

  • Required binaries: pkg-get
  • Confined to: osfamily == solaris
  • Supported features: installable, uninstallable, upgradeable

tdnf

Support via tdnf.

This provider supports the install_options attribute, which allows command-line flags to be passed to tdnf. These options should be spcified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: tdnf, rpm
  • Default for operatingsystem == PhotonOS
  • Supported features: install_options, installable, purgeable, uninstallable, upgradeable, versionable, virtual_packages

up2date

Support for Red Hat’s proprietary up2date package update mechanism.

  • Required binaries: /usr/sbin/up2date-nox
  • Confined to: osfamily == redhat
  • Default for lsbdistrelease == 2.1, 3, 4 and osfamily == redhat
  • Supported features: installable, uninstallable, upgradeable

urpmi

Support via urpmi.

  • Required binaries: urpmi, urpmq, rpm, urpme
  • Default for operatingsystem == mandriva, mandrake
  • Supported features: installable, purgeable, uninstallable, upgradeable, versionable

windows

Windows package management.

This provider supports either MSI or self-extracting executable installers.

This provider requires a source attribute when installing the package. It accepts paths to local files, mapped drives, or UNC paths.

This provider supports the install_options and uninstall_options attributes, which allow command-line flags to be passed to the installer. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

If the executable requires special arguments to perform a silent install or uninstall, then the appropriate arguments should be specified using the install_options or uninstall_options attributes, respectively. Puppet will automatically quote any option that contains spaces.

  • Confined to: operatingsystem == windows
  • Default for: operatingsystem == windows
  • Supported features: install_options, installable, uninstall_options, uninstallable, versionable

yum

Support via yum.

Using this provider’s uninstallable feature will not remove dependent packages. To remove dependent packages with this provider use the purgeable feature, but note this feature is destructive and should be used with the utmost care.

This provider supports the install_options attribute, which allows command-line flags to be passed to yum. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: yum, rpm
  • Default for: osfamily == redhat
  • Supported features: install_options, installable, purgeable, uninstallable, upgradeable, versionable, virtual_packages

zypper

Support for SuSE zypper package manager. Found in SLES10sp2+ and SLES11.

This provider supports the install_options attribute, which allows command-line flags to be passed to zypper. These options should be specified as a string (e.g. ‘–flag’), a hash (e.g. {‘–flag’ => ‘value’}), or an array where each element is either a string or a hash.

  • Required binaries: /usr/bin/zypper
  • Confined to: operatingsystem == [:suse, :sles, :sled, :opensuse]
  • Default for: operatingsystem == suse, sles, sled, opensuse
  • Supported features: install_options, installable, uninstallable, upgradeable, versionable, virtual_packages

Provider Features

Available features:

  • holdable — The provider is capable of placing packages on hold such that they are not automatically upgraded as a result of other package dependencies unless explicit action is taken by a user or another package. Held is considered a superset of installed.
  • install_options — The provider accepts options to be passed to the installer command.
  • installable — The provider can install packages.
  • package_settings — The provider accepts package_settings to be ensured for the given package. The meaning and format of these settings is provider-specific.
  • purgeable — The provider can purge packages. This generally means that all traces of the package are removed, including existing configuration files. This feature is thus destructive and should be used with the utmost care.
  • reinstallable — The provider can reinstall packages.
  • uninstall_options — The provider accepts options to be passed to the uninstaller command.
  • uninstallable — The provider can uninstall packages.
  • upgradeable — The provider can upgrade to the latest version of a package. This feature is used by specifying latest as the desired value for the package.
  • versionable — The provider is capable of interrogating the package database for installed version(s), and can select which out of a set of available versions of a package to install if asked.
  • virtual_packages — The provider accepts virtual package names for install and uninstall.

Provider support:

Provider holdable install options installable package settings purgeable reinstallable uninstall options uninstallable upgradeable versionable virtual packages
aix X X X X
appdmg X
apple X
apt X X X X X X X
aptitude X X X X X X
aptrpm X X X X X
blastwave X X X
dnf X X X X X X X
dpkg X X X X X
fink X X X X X X
freebsd X X X X
gem X X X X X X
hpux X X
macports X X X X
nim X X X X
openbsd X X X X X X X
opkg X X X
pacman X X X X X X
pip X X X X X
pip3 X X X X X
pkg X X X X X
pkgdmg X
pkgin X X X X
pkgng X X X X
pkgutil X X X
portage X X X X X X X X X
ports X X X X
portupgrade X X X
puppet_gem X X X X X X
rpm X X X X X X X
rug X X X X
sun X X X X
sunfreeware X X X
tdnf X X X X X X X
up2date X X X
urpmi X X X X X
windows X X X X X
yum X X X X X X X
zypper X X X X X X

NOTE: This page was generated from the Puppet source code on 2018-08-28 06:48:02 -0700