Installer support for macOS.
Installer is the native .pkg/.mpkg package manager for macOS.
Added in version 2016.3.0.
Remove the receipt data about the specified package. Does not remove files.
Warning
DO NOT use this command to fix broken package design
package_id (str) -- The name of the package to forget
True if successful, otherwise False
bool
CLI Example:
salt '*' pkgutil.forget com.apple.pkg.gcc4.2Leo
Install a .pkg from an URI or an absolute path.
source (str) -- The path to a package.
package_id (str) -- The package ID
True if successful, otherwise False
bool
CLI Example:
salt '*' pkgutil.install source=/vagrant/build_essentials.pkg package_id=com.apple.pkg.gcc4.2Leo
Returns whether a given package id is installed.
True if installed, otherwise False
bool
CLI Example:
salt '*' pkgutil.is_installed com.apple.pkg.gcc4.2Leo
List the installed packages.
A list of installed packages
list
CLI Example:
salt '*' pkgutil.list