In order to extract such a package following software is requried:
-
7zip for general .pkg
-
pbzx for Payload files Github Source
- xar Github Source
- fix
- download optional dependency
libbzip2 / bzip2and enable it in xar compilation configuration. This enables use or xar for extracting .pkg
- compile with
gcc pbzx.c -o pbzx -llzma -lxar
- xar Github Source
After all is installed and working, extract .pkg with 7zip, go into extracted directory and go into desired directory containing payload file.
Then run pbzx -n /path/to/file | cpio -i in order to extract Payload file
NOTE: Bom files are quite possibly bzip2 compressed / encoded.