How to Convert a dmg to an iso file in Linux

Press Ctrl + Alt + T on your keyboard to open Terminal. When it opens, run the commands below:

sudo apt-get install dmg2img

Once installed, change the directory to where the .dmg file is located and run the following command:

dmg2img <file_name>.dmg

This will convert the .dmg to an .img file. Run the following command to convert the .img to an .iso file.

mv <file_name>.img <file_name>.iso