Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9226

.pkg files are used by Installer which is an application included in Mac OS X which extracts and installs files (usually application installs).

17 votes

Unattended installation of pkg file

First, the technical answer You can install a .pkg or .mpkg using this syntax: sudo installer -verboseR -pkg "/path/to/pkg/foo.mpkg" If the installer isn't 'signed' properly, you'll need to add -allowUntrusted … sudo installer -allowUntrusted -verboseR -pkg "/path/to/pkg/foo.mpkg" You may also need to specify where you want it installed, using -target / (I'm not 100% certain this is required, but it's a good …
TJ Luoma's user avatar
  • 20.9k
4 votes

Foolproof way of extracting .pkg files

(Filenames must end in .pkg). Can handle both .pkg directories or xar archives. … make sure that the extension is 'pkg' # because that's what we're looking for [[ "$EXT" = "pkg" ]] || die "$INPUT is not a pkg" TYPE=`file -b "$INPUT"` case "$TYPE" in directory) …
TJ Luoma's user avatar
  • 20.9k