A DMG file is a disk image — a single file that contains a complete copy of a folder, program, or entire disk

When you download software on a Mac, you often get a DMG file instead of a single installer. Think of it as a container: it holds everything the program needs, packaged into one file that's easier to download and move around. Your Mac treats it like a disk drive that appears on your desktop when you open it.

DMG stands for "disk image" and is specific to macOS. Windows uses ISO files for the same purpose. The DMG format lets software makers bundle a program, its supporting files, and sometimes a shortcut to your Applications folder all in one place, so installation is usually just dragging an icon from one folder to another.

Key Takeaways

  • A DMG file is a container that holds a program or files and appears as a disk on your Mac when opened.
  • Opening a DMG file (double-clicking it) mounts it to your desktop; it does not install anything by itself.
  • Most DMG files contain a program icon and an Applications folder shortcut, so you drag the program into Applications to complete installation.
  • After you drag the program into Applications, you can eject the DMG file and delete it — the program is now installed on your Mac.
  • DMG files are compressed, which makes them smaller to download than the actual program would be on its own.

How to open a DMG file on your Mac

Double-click the DMG file in your Downloads folder or wherever you saved it. Your Mac will mount it, meaning it will appear as a disk icon on your desktop and in Finder's sidebar, just like an external hard drive would. The file itself does not run or install anything — mounting just makes its contents visible.

Inside the mounted DMG, you will usually see a program icon and a folder labeled "Applications" with an arrow pointing to it. This is a shortcut, not the real Applications folder. Drag the program icon into that Applications folder shortcut, and your Mac copies the program to the real Applications folder on your computer. That is the actual installation step.

What happens after you install from a DMG

Once you have dragged the program into Applications, the DMG file has done its job. You can eject it by right-clicking the disk icon on your desktop and choosing "Eject", or by dragging it to the Trash. Ejecting does not remove the program — it just closes the container. The program itself now lives in your Applications folder.

You can then delete the DMG file from your Downloads folder. It was only needed to get the program onto your Mac. Some people keep DMG files in case they need to reinstall, but most delete them to save space. If you need the program again later, you can always download the DMG file again.

Why Macs use DMG files instead of direct installation

DMG files are compressed, which makes them smaller to download. A program that takes 500 MB of space on your Mac might be compressed to 300 MB in a DMG file, saving bandwidth for both you and the software maker. Once you mount and install it, the program expands to its full size.

The DMG format also lets software makers control exactly what you see during installation. They can arrange the window to show the program icon, the Applications folder, and sometimes a license agreement or readme file all at once. This makes the installation process clearer than a traditional installer wizard would be.

DMG files from the App Store versus third-party sources

If you download software directly from a company's website or from a site like MacUpdate, you will often get a DMG file. If you download from the Mac App Store, the installation happens automatically in the background — you do not see a DMG file at all. The App Store handles the mounting and installation for you.

DMG files from official sources are safe to use. However, because a DMG file can contain any program, only download them from sources you trust. Your Mac will warn you if a program is not signed by a recognized developer, which is a useful safety check.

Common issues when working with DMG files

If double-clicking a DMG file does not open it, the file may be corrupted or incomplete. Try downloading it again. If you see an error message saying the file is damaged, delete it and re-download from the source.

If you cannot drag a program into Applications because the folder is grayed out or locked, your Mac is preventing changes to that folder. This usually means the program needs administrator permission to install. Right-click the Applications folder and check its permissions, or try dragging the program to a different location first, then moving it to Applications later.

If a DMG file will not eject, a program from that DMG might still be running. Close the program completely, then try ejecting again. If it still will not eject, restart your Mac.

Frequently Asked Questions

Is it safe to delete a DMG file after installing the program?

Yes. Once you have dragged the program into Applications and closed the DMG, the program is fully installed on your Mac. The DMG file is just the delivery container. Deleting it frees up space and does not affect the program.

Can I run a program directly from a mounted DMG without installing it?

Yes, you can double-click a program icon inside a mounted DMG and it will run. However, this is not recommended for regular use because the program runs from the DMG file, which is slower and will stop working if you eject the DMG. Always drag it to Applications first for normal use.

What is the difference between a DMG file and a ZIP file?

Both are containers, but a ZIP file must be uncompressed before you can use what is inside it. A DMG file mounts as a disk, so you can access its contents immediately without an extra step. ZIP files are more common across different operating systems.

Why does my Mac say the DMG file is not signed by a recognized developer?

This warning appears when software comes from a developer Apple does not have on file. It does not mean the software is dangerous — many legitimate programs show this warning. If you trust the source, you can click "Open" to proceed. If you are unsure, check the developer's website to confirm the download is legitimate.