Ubuntu – How to convert a dmg file to img in ubuntu

12.04

I have installed dmg2img-1.6.2 on my Virtual Computer. when I say installed I mean I can see the folder dmg2img-1.6.2 and contents in my home directory. I am using linux 12.04. I have been trying for a week now to convert a dmg file to img using terminal. The response to "dmg2img lightroom_5_LS11.dmg" is syntax error. Other commands usually respond as " cannot open input file lightroom _5_LS11.dmg. Any help would be appreciated. Not sure which set of commands to use. Just been using trial and error method, none of which has worked.

Best Answer

You can use DMG2IMG.

To install, Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install dmg2img

To use, just do dmg2img -i <input.dmg> -o <output.img> See manpage