Result: You now have a PSP ISO playable on PPSSPP or real hardware via a UMD loader.
If the .pkg is just a generic compressed archive (sometimes installers use this extension):
Step 1: Try to Extract Try opening
Converting PS3 PKG files to ISO format involves using tools like PSN Liberator or PS3 ISO Tools to unlock, extract, and repackage the game into a disc folder structure. This process allows for playing digital-only games from external storage, although some games may not run properly due to internal path restrictions. Read a discussion on the process at Reddit.
For PS4, converting PKG to ISO is functionally useless because PS4 emulators (like Spine) do not use ISO; they use extracted folders. However, if you insist on an ISO container for archival:
This guide is called "exclusive" because most online tutorials fail to address:
Verify the ISO:
Once you have your .iso, verify it's bootable and usable.
If you've managed to create a .dmg file or have one:
hdiutil convert -format UDRW -o MyInstaller.iso MyInstaller.dmg
Or if it's directly from a mounted volume:
hdiutil convert -format UDRW -o MyInstaller.iso /Volumes/MyVolume
Be aware that .dmg files are UDRW (UDIF read/write image), so the -format UDRW option might not be needed.