macOS

installer

CautionInstall .pkg from CLI

sudo installer -pkg <file.pkg> -target /

Installs packages headlessly — for SSH sessions and mass deployment. Audit afterwards with pkgutil.

Examples

  • sudo installer -pkg Agent.pkg -target /Install an agent

Syntax

sudo installer -pkg <pkg> -target /

Before you run it

Verify signatures and sources first.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store