Monday, April 25, 2011

Extract content from a pkg or mpkg "file"

Ever wondered what's inside a .pgk or .mpkg file?
In general they are directories so it can be accessed from the shell, or right-clicking it and choosing "Show Package Contents". The application data is packed in the file named: Archive.pax.gz.
To uncompress it:
   gunzip Archive.pax.gz
   pax -rvf Archive.pax

and voilĂ , behold all the package content unrolled before you.

I the right-clicking does not work then the .pkg is not a directory but a file. In this case there is a handy application named unpkg, that will just do the trick.


No comments:

Post a Comment