20
2
As a Linux user, I need to get the content of a .dmg (Mac OSX disk image) file which contains an application installer.
I tried dmg2dir
(which requires dmg2img
) which created an .img file but nothing else.
$ sudo dmg2dir jdk-8u51-macosx-x64.dmg
==> Routines successfully accomplished. Ready!
==> Prepare loop device...
==> Mount block device...
Error looking up object for device /dev/disk/by-label/JDK\x208\x20Update\x2051 INTENSO openSUSE\x20Live\x20CD\x20GNOME dump
Variable is empty.
I just need the files from the .dmg file unpacked, I don't want to mount it.
In case you're curious, I need this to create a portable development environment to be used at workshops on computers that can't be prepared upfront.
1It is a disk image. Unless someone has gone to all the work (which I guess 7z did) to write file system readers into their program, the easiest way is to use the Linux kernel filesystem modules to read the data. Which means mounting it. – Zan Lynx – 2015-08-17T04:25:21.847