commands.sh

installer

macos

Install system software and packages to a specified domain or volume.

More info →

Options (2)

boolean

Install a Python package to the root volume with verbose output

Example: sudo installer -verbose {{[-pkg|-package]}} {{path/to/python-version.pkg}} {{[-tgt|-target]}} /
boolean

Install a Python package to the root volume with verbose output

Example: sudo installer -verbose {{[-pkg|-package]}} {{path/to/python-version.pkg}} {{[-tgt|-target]}} /

Examples (6)

Install a Python package to the root volume with verbose output

sudo installer -verbose [-pkg|-package] path/to/python-version.pkg [-tgt|-target] /

Display list of packages (or subpackages for `.mpkg`) that can be installed on the target volume

installer -pkginfo [-pkg|-package] path/to/package.pkg

Display list of volumes onto which the package can be installed

installer -volinfo [-pkg|-package] path/to/package.pkg

Display list of domains into which the package can be installed

installer -dominfo [-pkg|-package] path/to/package.pkg

Generate XML of install choices for a package

installer [-pkg|-package] path/to/package.pkg -showChoiceChangesXML

Install package using XML config instead of command line parameters

sudo installer [-pkg|-package] path/to/package.pkg -file path/to/config-file
made by @shridhargupta | data from tldr-pages