“Show Package Contents” Unavailable? Extract .pkg Files Without Installing Them

Continuing on with the theme of inspecting the contents of app installers, you can also extract package files and sort through their contents without actually installing them. To do this, you can often just right-click on a pkg file and select “Show Package Contents” – but that isn’t always displayed. Assuming that option is unavailable, we can extract .pkg files using a command line tool called pkgutil that is bundled with OS X:
- Launch Terminal (in /Applications/Utilities/)
- Use the following syntax:
- Go to the outputs path in the Finder and check out the extracted files
pkgutil --expand /path/to/package.pkg /output/destination/
Hint: recall that you can drag & drop items into the Terminal to print their full path, making this tip easier by typing: pkgutil –expand [drop file here] /destination/path/
![]()
You’ll notice that some package files contain even more package files, quickly leading you into a deeply nested package extraction process. Other than that, this is an excellent way to see what’s contained within packages, particularly the ones where the alt-click “Show Package Contents” option isn’t available, which is increasingly common in Mac OS X Lion, although ultimately it depends on how the package was constructed.

Try Pacifist for a GUI option
Or Suspicious Package:
http://www.mothersruin.com/software/SuspiciousPackage/
Pacifist website states that at present, it is *not* compatible with OS X 10.7, but an update is in the pipeline.
[...] Do I get the logic? (I do not want more complexity.) Exactly where can I discover a checklist of devices integrated. (I know there are a lot more than 1700, but I can not find the record.) MacRumors forum [...]
[...] “Show Package Contents” Unavailable? Extract .pkg Files Without …Sep 26, 2011 … Extract .pkg Files Without Installing Them. … Extract Package (.pkg) file contents without installing them in Mac OS X. Continuing on with the … [...]
[...] to grab a file out of a .pkg file? Maybe you want to see what’s inside of a pkg without installing it? No sweat, pkgutil does the [...]