Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am installing a C++ library using the Installer application(its a .mpkg file) The installation is successful, but I cannot find the location of the library to set an environmental variable. I have checked the /private/var/log/install.log, but the destination folder is not listed. Is there another log I can check, or a way to determine the installation destination through the .mpkg? Thank you very much for your time, Adam

share|improve this question
up vote 1 down vote accepted

Simply open the package with the standard OS X Installer, and hit ⌘I (or through menus: File>Show files).

For more information or to act upon the files, use the excellent Pacifist package manager.

share|improve this answer

Use pkgutil --pkg-info packageid and look for the listed "location" to see where the installation root was; then pkgutil --files packageid will show the installed files relative to that root location.

share|improve this answer
$ cd ~/Desktop/InsomniaT.mpkg/Contents/Resources/Kernel\ Module.pkg/Contents/
$ ls    Archive.pax.gz Info.plist     PkgInfo        Resources
$ lsbom
.   41775   0/80
./System    40755   0/0
./System/Library    40755   0/0
./System/Library/Extensions 40755   0/0
./System/Library/Extensions/InsomniaT.kext  40755   0/0
./System/Library/Extensions/InsomniaT.kext/Contents 40755   0/0
./System/Library/Extensions/InsomniaT.kext/Contents/Info.plist  100644  0/0 1900    1578584638
./System/Library/Extensions/InsomniaT.kext/Contents/MacOS   40755   0/0
./System/Library/Extensions/InsomniaT.kext/Contents/MacOS/InsomniaT 100644  0/0 107860  966116348
$ gzip -cd Archive.pax.gz | pax | more
share|improve this answer
This only works on old-style (bundle-based) packages, and only shows the file paths relative to the installation root, and if the installation root wasn't "/"... – Gordon Davisson Nov 18 '11 at 1:58

You should be able to view the details of what was installed using pkgutil.

You can use pkgutil --packages to get the exact name of the package and then pkgutil --files package to see what files were installed.

share|improve this answer
that command just gives me the package names, not their destination – wespiserA Nov 17 '11 at 19:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.