salt.modules.pkgutil

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.pkgutil

Pkgutil support for Solaris

`salt.modules.pkgutil.` `available_version`(name)

  The available version of the package in the repository

  CLI Example:

      salt '*' pkgutil.available_version CSWpython

`salt.modules.pkgutil.` `install`(name, refresh=False, version=None, **kwargs)

  Install the named package using the pkgutil tool.

  Returns a dict containing the new package names and versions:

      {'<package>': {'old': '<old-version>',
                 'new': '<new-version>']}

  CLI Example:

      salt '*' pkgutil.install <package_name>
      salt '*' pkgutil.install SMClgcc346

`salt.modules.pkgutil.` `list_pkgs`()

  List the packages currently installed as a dict:

      {'<package_name>': '<version>'}

  CLI Example:

      salt '*' pkgutil.list_pkgs

`salt.modules.pkgutil.` `list_upgrades`()

  List all available package upgrades on this system

  CLI Example:

      salt '*' pkgutil.list_upgrades

`salt.modules.pkgutil.` `purge`(name, **kwargs)

  Remove a package and all its dependencies which are not in use by other packages.

  Returns a list containing the removed packages.

  CLI Example:

      salt '*' pkgutil.purge <package name>

`salt.modules.pkgutil.` `refresh_db`()

  Updates the pkgutil repo database (pkgutil -U)

  CLI Example:

      salt '*' pkgutil.refresh_db

`salt.modules.pkgutil.` `remove`(name, **kwargs)

  Remove a package and all its dependencies which are not in use by other packages.

  Returns a list containing the removed packages.

  CLI Example:

      salt '*' pkgutil.remove <package name>
      salt '*' pkgutil.remove SMCliconv

`salt.modules.pkgutil.` `upgrade`(refresh=True, **kwargs)

  Upgrade all of the packages to the latest available version.

  Returns a dict containing the new package names and versions:

      {'<package>': {'old': '<old-version>',
                 'new': '<new-version>']}

  CLI Example:

      salt '*' pkgutil.upgrade

`salt.modules.pkgutil.` `upgrade_available`(name)

  Check if there is an upgrade available for a certain package

  CLI Example:

      salt '*' pkgutil.upgrade_available CSWpython

`salt.modules.pkgutil.` `version`(name)

  Returns a version if the package is installed, else returns an empty string

  CLI Example:

      salt '*' pkgutil.version CSWpython

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »