Converting a .pkg file directly to an .iso file is not a standard or universal process because these file formats serve different purposes and structures.
A more direct method for experienced users involves creating a .iso directly from a .dmg: how to convert pkg to iso exclusive
On the other hand, an ISO file, also known as an ISO image, is a file that contains the contents of an optical disc, such as a CD, DVD, or Blu-ray disc. ISO files are often used to distribute operating systems, software, and games. Converting a