Installing an app "permanently" from a .dmg file on macOS usually involves one of two common methods, depending on what's inside the disk image:
Method 1: Drag and Drop (Most Common for Simple Apps)
This is the most frequent way apps are distributed via .dmg. The .dmg simply contains the application bundle (.app file) itself.
- Download the .dmg file: Get the
.dmg file from the developer's official website or a trusted source.
- Open the .dmg file: Double-click the
.dmg file. It will mount a virtual disk image on your desktop, usually with an icon that looks like a hard drive. A Finder window will also open, displaying its contents.
- Tip: The Finder window often includes a shortcut alias to your
/Applications folder, making the next step easier.
- Locate the Application: Inside the opened
.dmg window, you'll see the application icon (it will have a .app extension if you have extensions visible, e.g., MyApp.app).
- Drag the Application to the Applications Folder:
- Option A (Recommended): If the
.dmg window provides an "Applications" shortcut, drag the app icon onto that shortcut.
- Option B: Open a new Finder window (Cmd+N), click "Applications" in the sidebar, then drag the app icon from the
.dmg window into the "Applications" folder.
- Option C: Navigate to
Macintosh HD > Applications and drag the app there.
- What happens: Your Mac will copy the application file from the virtual disk image to your main Applications folder. This is the "installation" process.
- Eject the Disk Image:
- Drag to Trash: Drag the virtual disk image icon from your desktop to the Trash (the Trash icon will change to an "Eject" symbol).
- Finder Sidebar: In any Finder window, hover over the disk image name in the sidebar under "Locations" and click the "Eject" symbol (⇧).
- Right-Click: Right-click (or Control-click) the disk image icon on your desktop and select "Eject [Disk Image Name]".
- Why this is important: Ejecting closes the virtual disk and frees up resources. You don't need the mounted disk image anymore once the app is copied.
- Delete the .dmg file (Optional but Recommended): Once the app is copied and the disk image is ejected, you can move the original
.dmg file (the one you downloaded) to the Trash. You no longer need it unless you plan to install the app again on another Mac or keep it as a backup installer.
Method 2: Run an Installer Package (.pkg file) (Less Common for Simple Apps, More for Suites/Drivers)
Sometimes, a .dmg file contains a .pkg (installer package) file instead of, or in addition to, the .app file. This is common for larger applications, software suites, or drivers that need to install components in various system locations.
- Download the .dmg file: Get the
.dmg file from the developer's official website or a trusted source.
- Open the .dmg file: Double-click the
.dmg file. It will mount a virtual disk image on your desktop, and a Finder window will open.
- Locate the Installer Package: Inside the opened
.dmg window, you'll see a file named something like Install MyApp.pkg or just MyApp.pkg. It usually has an icon resembling an open box.
- Run the Installer Package: Double-click the
.pkg file. This will launch the standard macOS Installer program.
- Follow the On-Screen Prompts: The installer will guide you through the process, which may include:
- Introduction
- License Agreement (EULA)
- Destination Select (choose where to install, usually your main drive)
- Installation Type (standard or custom)
- Summary
- You might need to enter your administrator password to proceed.
- Complete the Installation: Once the installation finishes, the installer will usually tell you it was successful. You can then click "Close" or "Quit".
- Eject the Disk Image: As with Method 1, eject the virtual disk image from your desktop (drag to Trash, use Finder sidebar, or right-click).
- Delete the .dmg file (Optional but Recommended): Move the original
.dmg file to the Trash.
Important Notes:
- Security: Always download apps from trusted sources (the developer's official website, the Mac App Store). macOS Gatekeeper (System Settings > Privacy & Security > Security) helps protect you from malicious software by default.
- Location of Apps: While you can run an app from almost anywhere, putting it in
/Applications makes it easily discoverable by Launchpad, Spotlight, and the Finder sidebar. This is the standard and recommended location.
- Uninstallation: To uninstall an app installed this way (whether by drag-and-drop or
.pkg installer to /Applications), simply drag its icon from your Applications folder to the Trash. For apps that installed many components (often those using .pkg), you might sometimes need to use an uninstaller provided by the developer, but for most, dragging to Trash is sufficient.