Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where is "Show Package Contents"

I've update my osx into yosemite. Now i want to view application package contents. In earlier version of osx there was a option name "show package contents". But now when i right click on application there has no "show package contents" option.
now how to view the package contents??

MacBook Pro (15-inch Mid 2012), OS X Yosemite (10.10.1)

Posted on Dec 24, 2014 10:45 PM

Reply
Question marked as Best reply

Posted on Mar 4, 2016 9:50 AM

I downloaded an installer package (.pkg) that was not showing a right click package contents option. It turns out the contents were compressed. I didn't know about TextWrangler's Disk Browser utility but it didn't work in this case (the file didn't show up in the listing). Pacifist was able to revel the contents.


There's was a clue it was a compressed package. One of the right click > Open With options was for a file decompression utility I have installed (The Unarchiver).

20 replies

Nov 16, 2016 4:36 PM in response to supto_o

You can solve this problem without installing any additional software. Here's how...



I wasn't sure at first if my problem with .pkg files the ones described in this thread, but then after reading the whole thread I realized supto_o has exactly the same problem I have.


To clarify:


I have a .pkg file. When I right click there's no "Show Package Contents" in the pop-up menu.

Yet I can run and install the .pkg. I have no idea what files were installed or where they were installed. I need to see the contents of the .pkg file. My blood boils because it's incomprehensible to me why Apple would keep contents of a .pkg file from being inspected.


My solution:


On a lark I tested the file to see if it was just a tar file, and sure enough it is! So try this:


$ tar tzvf yourfile.pkg


If you do you'll see someoutput like:


$ tar tzvf base-crypto-1.10.0-x86_64.pkg

-rw-r--r-- 1 jan staff 44679 Nov 1 19:06 Bom

-rw-r--r-- 1 jan staff 2505614 Nov 1 19:06 Payload

-rw-r--r-- 1 jan staff 87 Nov 1 19:06 Scripts

-rwxrwxrwx 1 0 0 565 Nov 16 16:24 PackageInfo


great! So then extract that, because what you just was was a listing. So run the same command, replacing the "t" with an "x":

$ tar xzvf ../base-crypto-1.10.0-x86_64.pkg

x Bom

x Payload

x Scripts

x PackageInfo


Now you can peek at the file PackageInfo to see where the files are installed:


$ cat PackageInfo

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<pkg-info overwrite-permissions="true" relocatable="false" identifier="org.freedesktop.gstreamer.x86_64.base-crypto" postinstall-action="none" version="1.10.0" format-version="2" generator-version="InstallCmds-554 (15G1108)" install-location="/Library/Frameworks/GStreamer.framework/Versions/1.0" auth="root">

<payload numberOfFiles="63" installKBytes="5953"/>

<bundle-version/>

<upgrade-bundle/>

<update-bundle/>

<atomic-update-bundle/>

<strict-identifier/>

<relocate/>



Hope that helps.

Where is "Show Package Contents"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.