In this way, the file imagefile.img is a result from dmg2iso and the contents will be available at /mnt. dmg to a file that can be mounted using the mount command: dmg2img file.dmg imagefile.imgįrom your Wikipedia article, the next command seems to be available to do that: sudo mount -o loop -t hfsplus imagefile.img /mnt Next, read the package information page and the manual page to see if it is useful to you. To extract it, it is much easier to use 7zip: 7z x file.dmg