But for casual inspection, the pkgutil command is nice to know about. It's $20 shareware, and if one works in the above mode a lot, it could well be worth the investment. In researching this command, I discovered a nice GUI utility called Pacifist (OS X 10.8 or later) that can drill into, amongst others. Here's what a dump looks like for one of my. In these examples, the destination folder will be in the same folder as the package file, but one could define a path to somewhere else. Check the Where label and you will find the path of the file as shown below. Pkgutil -expand package-name.mpkg destination-folder Right-click on a file or folder and click the Get info option in the context menu. In the simplest case, the terminal commands would be: pkgutil -expand package-name.pkg destination-folder The "man" page, of course, shows all the options. The easiest way to get started is to do a simple expand option and write it out to a named folder. It extracts the contents of the package file into its component pieces and can write it all out to a folder for inspection. In this case, one can use a nifty OS X command line tool called pkgutil. A different kind of tool is needed to analyze it. However, if Show Package Contents isn't provided as a contextual menu option for either type of installer, don't despair. Once selected, the file or folders path is now in the clipboard, ready to be pasted. While in the right-click menu, hold down the OPTION key to reveal the Copy (item name) as Pathname option, it replaces the standard Copy option. pkg files inside them that may be amendable to Show Package Contents. Right-click (or Control+Click, or a Two-Finger click on trackpads) on the file or folder in the Mac Finder. mpkg files are meta-packages that may contain. That may or may not work depending on how the package file is constructed. One might think, at first, that the OS X command "Show Package Contents" will work on another package file, an installer that ends in. There is a contextual menu item, "Show Package Contents" that allows one to drill into the guts of an application and view all its resources. OS X recognizes application packages and knows how to give them their unique icon. If you happen to be faced with a package (.pkg) or meta-package (.mpkg) file and want to inspect its contents before you initiate an install, there's a nifty OS X utility that can dump out the files contained inside for your inspection.Īs OS X users, we're familiar with the fact that applications are actually complex folders in disguise-packages in developer lingo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |