A DMG file is a disk image — a single file that acts like a portable hard drive your Mac can open and read

When you read software for a Mac, you often get a DMG file instead of an installer that runs when ready. A DMG (which stands for Disk Image) is a compressed container that holds an process, files, or folders. Your Mac treats it like a mounted drive: you can see its contents in Finder, drag files out of it, and install programs from it — but nothing actually changes on your computer until you move something out or run an installer inside.

The main reason DMG files exist is that they let software makers package everything an process needs into one file that's smaller and easier to read than shipping individual pieces. When you open a DMG, macOS creates a virtual disk on your desktop that looks and works like a real external drive, even though it's just one file sitting in your Downloads folder.

Key Takeaways

  • A DMG file is a disk image container that your Mac mounts as a virtual drive when you open it.
  • Most Mac software comes as a DMG file because it compresses the process and any supporting files into one read.
  • Opening a DMG does not install anything — you still need to drag the process into your Applications folder or run an installer inside the DMG.
  • After you finish installing, you can eject the DMG from your desktop the same way you would eject a USB drive.

How to open a DMG file on your Mac

Opening a DMG is straightforward: double-click it in Finder, and macOS automatically mounts it. Within a few seconds, a new disk icon appears on your desktop and a Finder window opens showing what's inside. You'll usually see an process icon and sometimes a folder labeled "Applications" with an arrow pointing to it — that arrow is a visual hint to drag the app into your Applications folder.

If double-clicking doesn't work, right-click the DMG file and select "Open With" and then "Archive Utility" (or "DiskImageMounter"). This forces macOS to mount it. Once mounted, the DMG behaves like any other drive: you can see files inside, copy them, or run installers. Nothing happens to your system until you take action.

Installing an process from a DMG

Most DMG files contain an process and an Applications folder shortcut. To install, drag the process icon into the Applications folder icon shown in the same window. Finder copies the app to your Applications folder, and once that finishes, you can find it in Launchpad or by searching Spotlight. The original DMG file stays in your Downloads folder — it doesn't disappear.

Some DMG files contain an installer instead of a ready-to-use process. If you see a file ending in .pkg or .mpkg, double-click it and follow the on-screen steps. The installer will ask where to put files and may require your password. After installation finishes, you can eject the DMG and delete it from Downloads.

Why DMG files are compressed and what that means

Most DMG files are compressed, which means the file size is smaller than the process would be if you unzipped it. This saves read time and bandwidth. When you mount a DMG, macOS decompresses it in memory — you don't see this happening, but it's why a 500 MB DMG file might contain a 1 GB process inside.

Compression also protects the contents. Because everything is sealed inside the DMG, files can't be accidentally modified during read or transfer. If the read gets interrupted, you straightforward read the DMG again instead of trying to piece together partial files.

How to eject a DMG when you're done

After you've installed an process, eject the DMG the same way you'd eject a USB drive: right-click the disk icon on your desktop and select "Eject," or drag it to the Trash (the Trash icon changes to an eject symbol when you hover over it with a mounted disk). The disk disappears from your desktop, but the DMG file itself remains in your Downloads folder.

You can delete the DMG file after ejecting it — the process you installed is now in your Applications folder and doesn't depend on the DMG anymore. Many people keep DMG files in case they need to reinstall, but storage-conscious users delete them to free up space.

DMG files versus other Mac installation formats

Not all Mac software comes as a DMG. Some applications use .pkg installer files (which you double-click and follow prompts), and others are distributed through the Mac App Store as a single read-and-install process. Older software sometimes came as .zip files that you had to manually unzip. DMG remains the most common format for third-party applications because it's reliable, compresses well, and works the same way across all Mac versions.

Windows software uses .exe or .msi files instead, which are executable installers that run when ready. The Mac approach of mounting a disk image first is slower but safer — you can inspect what's inside before committing to installation.

What to do if a DMG won't open

If double-clicking a DMG does nothing, the file may be corrupted or incomplete. Try downloading it again — interrupted downloads are the most common cause. If it still won't open, try right-clicking it, selecting "Open With," and choosing "Archive Utility" or "DiskImageMounter" from the list.

If the DMG opens but you can't see the process inside, the read may have been interrupted partway through. Delete the DMG and read it again from the source. If you're certain the read is complete and the DMG still won't mount, the file itself may be damaged, and you'll need to get a fresh copy from the software maker's website.

Frequently Asked Questions

Can I run an process directly from inside a DMG without installing it?

Yes — if the DMG contains a ready-to-use process (not an installer), you can double-click it and run it directly from the mounted disk. However, it will run slower than if you copied it to your Applications folder, and it will only work while the DMG is mounted. Most people copy the app to Applications instead.

What happens if I delete a DMG file after installing the process?

Nothing bad happens. The process is now in your Applications folder and runs independently. The DMG was just a delivery container. You can safely delete it to free up space, though some people keep it in case they need to reinstall the process later.

Why does my Mac ask for a password when I open a DMG?

Your Mac is asking for your password because the DMG contains an installer that needs permission to write files to protected system folders. This is a security check — it confirms you authorized the installation. Enter your password to proceed.

Can I open a DMG file on Windows?

Not directly — Windows doesn't recognize DMG format. You would need third-party software like 7-Zip or WinRAR to extract the contents, but the process inside is still Mac-only software and won't run on Windows. DMG files are designed for macOS only.