Note: This does not convert the internal structure of the package; it simply wraps the package file inside an ISO container. To access the package, the user must still mount the ISO and run the .pkg inside it.
Be aware that .dmg files are UDRW (UDIF read/write image), so the -format UDRW option might not be needed. how to convert pkg to iso exclusive
Converting PS3 PKGs to ISOs is "hit or miss" because many PKG files are designed as installers rather than disc images. How to Convert macOS Monterey Installer to an ISO File! Note: This does not convert the internal structure