How to Install Programs From DMG Files on Mac
In this article
This guide walks you through installing software from DMG files on a Mac. DMG (Disk Image) files are a common way to distribute Mac apps. You'll learn how to open them, move the app to your Applications folder, and eject the disk image safely.
What You'll Need
- A Mac running macOS (any recent version).
- The DMG file you want to install (downloaded from a trusted source).
- Enough free disk space for the app.
Step-by-Step
- Locate the DMG file. It’s usually in your Downloads folder. Double-click it to mount it. A new window will open, and a disk icon named after the app will appear on your desktop and in the Finder sidebar.
- Read any instructions. Many DMG windows include a shortcut to your Applications folder and sometimes a ReadMe or license file. Skim these if present.
- Drag the app icon into the Applications folder. This is the core step. Click and drag the application icon (usually the only large icon in the window) onto the Applications folder shortcut. macOS copies the file. If the app icon has a small arrow badge, it’s an alias—drag the actual app from the disk image, not the alias.
- Wait for the copy to finish. A progress bar may appear. For large apps, this can take a minute. Do not eject the disk image until it’s done.
- Eject the disk image. After the copy completes, you can eject it. Right-click the disk icon on the desktop and select Eject, or drag it to the Trash (which turns into an Eject icon). You can also press Cmd+E while the disk is selected.
- Delete the DMG file (optional). Once installed, the DMG file is no longer needed. You can delete it to free up space, but keep it if you want to reinstall later without re-downloading.
- Open the app. Go to your Applications folder and double-click the app. If it’s the first time you’ve opened it, macOS may show a warning that it was downloaded from the internet. Click Open to proceed.
Common Mistakes
- Running the app directly from the DMG. This works temporarily, but the app may not have full permissions, and you’ll have to mount the DMG every time. Always move it to Applications.
- Dragging the alias instead of the app. Some DMGs include a shortcut icon with an arrow. Dragging that to Applications will create a broken link. Look for the actual .app file.
- Ejecting before the copy finishes. This can corrupt the app. Wait for the progress bar to disappear.
- Forgetting to eject. Leaving the disk image mounted isn’t harmful, but it clutters the desktop and uses a tiny bit of memory. Ejecting is good practice.
- Deleting the DMG before installing. If you delete the DMG after dragging the app but before the copy is complete, the installation will fail.
Tips
- Check for updates. After installing, open the app and check its preferences for an update option. DMG installs don’t auto-update like App Store apps.
- Use the right-click “Open” for unsigned apps. If you see a warning that the app can’t be opened because it’s from an unidentified developer, right-click the app in Applications and select Open, then confirm. This is common for apps downloaded outside the App Store.
- Keep the DMG until the app runs. Test the app once before deleting the DMG. If it fails, you’ll still have the installer.
- Mount multiple DMGs at once. You can mount several DMGs and drag them all to Applications in one go, but be careful not to mix up files.
Troubleshooting
- “The disk image is damaged” or “can’t be opened.” This often means the download is incomplete or corrupted. Delete the DMG and re-download it from the original source. If it still fails, the file may be from an untrusted source—avoid forcing it.
- “You don’t have permission to open the application.” This can happen if the app was copied incorrectly. Re-drag it from the DMG, and if that fails, restart your Mac and try again.
- The app won’t open after installation. Right-click the app in Applications and select Open. If you see a security message, click Open in the dialog. If the app still refuses, check the developer’s website for known issues.
- The DMG mounts but the window is empty. Some DMGs contain a .pkg installer instead of a drag-and-drop app. Look for a file with a .pkg extension and double-click it to run the installer.
- You can’t eject the disk image. Close any windows that show the disk’s contents, then try ejecting again. If it still fails, log out and back in, or restart.
Frequently Asked Questions
Do I need to keep the DMG file after installing?
No, it’s safe to delete it once the app is in your Applications folder and runs correctly. Keeping it is only useful for reinstallation without re-downloading.
Can I install a DMG on an external drive?
Yes. Drag the app to the Applications folder on the external drive, or create a custom folder. Some apps may need to be in the main Applications folder to work properly, but most will run from anywhere.
What’s the difference between DMG and PKG files?
DMG files are disk images that you mount and drag apps out of. PKG files are installer packages that run a guided installation wizard, often for apps that need system components. You’ll typically see PKG for drivers or complex software.
Is it safe to install apps from DMG files?
It’s safe if the DMG comes from a trusted developer. Always download from the official website or a reputable source. macOS will warn you about apps from unidentified developers, which is a sign to be cautious.
Why does macOS say the app is from an “unidentified developer”?
This happens when the app isn’t notarized by Apple. To open it, right-click and choose Open, then confirm. If you don’t trust the source, don’t open it.
Can I install a DMG without dragging it to Applications?
Yes, you can run the app directly from the mounted DMG, but it’s not recommended. The app may have limited access to system resources, and you’ll need to mount the DMG each time you want to use it.