Package support for AIX
Important
If you feel that Salt should be using this module to manage filesets or rpm packages on a minion, and it is using a different module (or gives an error similar to 'pkg.install' is not available), see here.
This function is an alias of latest_version
.
Return the latest version of the named fileset/rpm package available for upgrade or installation. If more than one fileset/rpm package name is specified, a dict of name/version pairs is returned.
If the latest version of a given fileset/rpm package is already installed, an empty string will be returned for that package.
CLI Example:
salt '*' pkg.latest_version <package name> salt '*' pkg.latest_version <package1> <package2> <package3> ...NOTE: Repositories are not presently supported for AIX. This function will always return an empty string for a given fileset/rpm package.
Install the named fileset(s)/rpm package(s).
Multiple Package Installation Options:
name
parameter will be ignored if this option is passed.Returns a dict containing the new fileset(s)/rpm package(s) names and versions:
- {'<package>': {'old': '<old-version>',
- 'new': '<new-version>'}}
CLI Example:
salt '*' pkg.install /stage/middleware/AIX/bash-4.2-3.aix6.1.ppc.rpm salt '*' pkg.install /stage/middleware/AIX/bash-4.2-3.aix6.1.ppc.rpm refresh=True salt '*' pkg.install /stage/middleware/AIX/VIOS2211_update/tpc_4.1.1.85.bff salt '*' pkg.install /stage/middleware/AIX/Xlc/usr/sys/inst.images/xlC.rte salt '*' pkg.install /stage/middleware/AIX/Firefox/ppc-AIX53/Firefox.base salt '*' pkg.install pkgs='["foo", "bar"]'
Return the latest version of the named fileset/rpm package available for upgrade or installation. If more than one fileset/rpm package name is specified, a dict of name/version pairs is returned.
If the latest version of a given fileset/rpm package is already installed, an empty string will be returned for that package.
CLI Example:
salt '*' pkg.latest_version <package name> salt '*' pkg.latest_version <package1> <package2> <package3> ...
NOTE: Repositories are not presently supported for AIX. This function will always return an empty string for a given fileset/rpm package.
List the filesets/rpm packages currently installed as a dict:
{'<package_name>': '<version>'}
CLI Example:
salt '*' pkg.list_pkgs
Remove specified fileset(s)/rpm package(s).
Multiple Package Options:
name
parameter will be ignored if this option is passed.Returns a list containing the removed packages.
CLI Example:
salt '*' pkg.remove <fileset/rpm package name> salt '*' pkg.remove tcsh salt '*' pkg.remove xlC.rte salt '*' pkg.remove Firefox.base.adt salt '*' pkg.remove pkgs='["foo", "bar"]'
Check whether or not an upgrade is available for a given package
CLI Example:
salt '*' pkg.upgrade_available <package name>
Common interface for obtaining the version of installed fileset/rpm package.
CLI Example:
salt '*' pkg.version vim salt '*' pkg.version foo bar baz
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.aixpkg.html