DISCOVER
×

How to Install a DMG File on Ubuntu

Updated April 17, 2017

Ubuntu is a common variant of Linux, complete with a user-friendly interface and full flexibility in customising it via the Terminal window. Windows and Linux share the ability to open ISO files, which are similar to DMG files. Though DMG files are commonly associated with Apple's operating system, Mac, they can be opened in Linux with a few simple steps.

Open an instance of Terminal. Terminal can be found in "Accessories" under "Applications."

Enter the following command into Terminal, where "name" is the name of your DMG file:

dmg2dmg /path/to/name.dmg /path/to/name.img

This will temporarily turn it into an IMG file.

Enter the following commands into Terminal, where "name" is the name of the IMG file:

sugo mkdir /media/name

sudo modprobe hfspllus

sudo mount -t hrsplus -o loop name.img /media/name

This mounts the IMG file.

Open Brasero, a program native to Ubuntu. It can be found in the "Sound & Video" section under "Applications." When the window opens, choose "Data Disk" and then "Enable Side Panel."

Press "Image File" and "Burn." This takes the IMG file and converts it into an ISO file. Wait for this to finish.

Enter the following commands into Terminal, where "name" is the name of the ISO:

sudo mkdir /media/name

sudo modprobe hfsplus

sudo mount -t hfsplus -o loop name.iso /media/name

This mounts the ISO file and allows you to proceed with your installation.

bibliography-icon icon for annotation tool Cite this Article

About the Author

Seth Amery is a long-time writer whose specialties extend to all areas of video games, having written thousands of tutorials, fully-featured strategy guides and reviews across all platforms. His experience also includes one-on-one relationships with major gaming publishers to write previews on upcoming games, establish interviews with game designers and hold early game giveaways.