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 available 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.
Changed in version 3005.
CLI Example:
salt '*' pkg.latest_version <package name> salt '*' pkg.latest_version <package1> <package2> <package3> ...
- Note: currently only functional for rpm packages due to filesets do not have a specific location to check
Requires yum of dnf available in order to query a repository
This function will always return an empty string for unfound fileset/rpm package.
Install the named fileset(s)/rpm package(s).
Changed in version 3005:
/opt/freeware/bin/dnf /opt/freeware/bin/yum /usr/bin/yum /usr/bin/rpm
The name of the fileset or rpm package to be installed.
Whether or not to update the yum database before executing.
A list of filesets and/or rpm packages to install.
Must be passed as a python list. The name
parameter will be
ignored if this option is passed.
Install a specific version of a fileset/rpm package. (Unused at present).
Verify that command functions correctly.
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 /cecc/repos/aix72/TL3/BASE/installp/ppc/bos.rte.printers_7.2.2.0.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 /cecc/repos/aix72/TL3/BASE/installp/ppc/bos.net
salt '*' pkg.install pkgs='["foo", "bar"]'
salt '*' pkg.install libxml2
Return the latest available 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.
Changed in version 3005.
CLI Example:
salt '*' pkg.latest_version <package name>
salt '*' pkg.latest_version <package1> <package2> <package3> ...
Requires yum of dnf available in order to query a repository
This function will always return an empty string for unfound 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).
The name of the fileset or rpm package to be deleted.
Changed in version 3005:
/opt/freeware/bin/dnf /opt/freeware/bin/yum /usr/bin/yum /usr/bin/rpm
A list of filesets and/or rpm packages to delete.
Must be passed as a python list. The 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
Changed in version 3005.
CLI Example:
salt '*' pkg.upgrade_available <package name>
Requires yum of dnf available in order to query a repository
Return the current installed version of the named fileset/rpm package If more than one fileset/rpm package name is specified a dict of name/version pairs is returned.
Changed in version 3005.
CLI Example:
salt '*' pkg.latest_version <package name>
salt '*' pkg.latest_version <package1> <package2> <package3> ...