Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

4 Answers 4

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.bom    Archive.pax.gz Info.plist     PkgInfo        Resources
$ lsbom Archive.bom
.   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
.
./System
./System/Library
./System/Library/Extensions
./System/Library/Extensions/InsomniaT.kext
./System/Library/Extensions/InsomniaT.kext/Contents
./System/Library/Extensions/InsomniaT.kext/Contents/Info.plist
./System/Library/Extensions/InsomniaT.kext/Contents/MacOS
./System/Library/Extensions/InsomniaT.kext/Contents/MacOS/InsomniaT
$ 
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

 
discard

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.