Certain PS3 or PS4 emulators expect game data in ISO format (or JB Folder format). Converting a game PKG to an ISO (or extracting it to a folder) is sometimes necessary, though note that many emulators now support direct PKG installation.
You need to modify the contents of a PKG installer (e.g., remove bloatware) and then repackage the modified file system as a bootable ISO. how to convert pkg to iso
| Tool | Purpose | |------|---------| | xar | Extract the xar archive (macOS PKG) | | pbzx or zlib | Decompress payloads (if Payload is in pbzx format) | | cpio or pax | Extract cpio/pax archives from payload | | hdiutil (macOS) | Create ISO from folder | | mkisofs / genisoimage (Linux) | Create ISO 9660 image | | dmg2iso (optional) | If PKG is wrapped in a DMG | Certain PS3 or PS4 emulators expect game data
echo "Creating ISO ..." hdiutil makehybrid -iso -joliet -o "$OUT" . | Tool | Purpose | |------|---------| | xar
The Payload is usually a cpio.gz , pax.gz , or pbzx stream.