Skip to content

Instantly share code, notes, and snippets.

@jroyalty
Created July 19, 2014 21:43
Show Gist options
  • Save jroyalty/fa443b1546045ea18d9a to your computer and use it in GitHub Desktop.
Save jroyalty/fa443b1546045ea18d9a to your computer and use it in GitHub Desktop.
Open an OS X PKG file
## If the package won't let you "Show Package Content" on right-click then...
pkgutil --expand Foo.pkg some/path
## This will probably yield one more more child .pkg files. Inside them
## look for the Payload file. Then...
mv Payload Payload.gz
gunzip Payload.gz
## Which results in Payload uncompressed. Use 'cpio' to extract files...
cpio -iv < Payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment