Skip to content

Instantly share code, notes, and snippets.

@applch
Last active October 17, 2019 19:25

Revisions

  1. applch renamed this gist Oct 17, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. applch revised this gist Oct 16, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions macOS 10.14 Mojave
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,8 @@ usage: softwareupdate <cmd> [<args> ...]
    -a | --all All appropriate updates
    -R | --restart Automatically restart (or shut down) if required to complete installation.
    -r | --recommended Only recommended updates
    --fetch-full-installer Install the latest macOS Installer
    --full-installer-version The version of macOS to install. Ex: --full-installer-version 10.15
    --background Trigger a background scan and update operation
    --ignore <label> ... Ignore specific updates
    --reset-ignored Clear all ignored updates
  3. applch created this gist Oct 16, 2019.
    30 changes: 30 additions & 0 deletions macOS 10.14 Mojave
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    usage: softwareupdate <cmd> [<args> ...]

    ** Manage Updates:
    -l | --list List all appropriate update labels (options: --no-scan, --product-types)
    -d | --download Download Only
    -e | --cancel-download Cancel a download
    -i | --install Install
    <label> ... specific updates
    -a | --all All appropriate updates
    -R | --restart Automatically restart (or shut down) if required to complete installation.
    -r | --recommended Only recommended updates
    --background Trigger a background scan and update operation
    --ignore <label> ... Ignore specific updates
    --reset-ignored Clear all ignored updates

    ** Other Tools:
    --dump-state Log the internal state of the SU daemon to /var/log/install.log
    --evaluate-products Evaluate a list of product keys specified by the --products option
    --history Show the install history. By default, only displays updates installed by softwareupdate.
    --all Include all processes in history (including App installs)

    ** Options:
    --no-scan Do not scan when listing or installing updates (use available updates previously scanned)
    --product-types <type> Limit a scan to a particular product type only - ignoring all others
    Ex: --product-types macOS || --product-types macOS,Safari
    --products A comma-separated (no spaces) list of product keys to operate on.
    --force Force an operation to complete. Use with --background to trigger a background scan regardless of "Automatically check" pref

    --verbose Enable verbose output
    --help Print this help