I have downloaded a dmg file but when I click on it it keeps verifying.
I've also tried to go to
/System/Library/CoreServices/Installer.app but I can't click on the .dmg because it is greyed out.
How can I open it?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
The command line tools allow you to mount the DMG and skip verification.
hdiutil attach -noverify /Path/To/Your/DMGFile.dmg
If you have the DMG file on your Desktop, and the DMG was named "Broken.DMG" you could type in something like this:
hdiutil attach -noverify ~/Desktop/Broken.dmg
Rather than typing the name of the file, just drop the file icon in the terminal window once the main command is ready. If your image is bad, the warning is correct and you should get a new dmg rather than bypass the error checking step.
A more global change would use defaults, but this check is very handy in general since it flags bad images:
defaults write com.apple.frameworks.diskimages skip-verify TRUE
This will stop the verification of DMG files permanently. After you've managed to skip the verification and open that file, it would be a good idea to re-enable the verification by opening Terminal again and typing in:
defaults write com.apple.frameworks.diskimages skip-verify FALSE
The verification is used to make sure the
.dmg package is not corrupted. You had better wait for the verification to be done, since the likely situation is that your file is bad, not that the check can’t run.
If you really wanna skip the verification, execute the following commands in the Terminal,
# Disable the "Are you sure you want to open this application?" dialog defaults write com.apple.LaunchServices LSQuarantine -bool false # Disable Disk Image Verification: Verifying ... defaults write com.apple.frameworks.diskimages skip-verify -bool true defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
To reverse the settings,
defaults delete com.apple.LaunchServices LSQuarantine -bool false defaults delete com.apple.frameworks.diskimages skip-verify defaults delete com.apple.frameworks.diskimages skip-verify-locked defaults delete com.apple.frameworks.diskimages skip-verify-remote
FastDMG is a free app available from https://sveinbjorn.org/fastdmg which I have used for this for a long time.¹ It’s very convenient, and if the .dmg is corrupted, it won’t mount, so that will be the sign that something might be wrong. Also, if FastDMG does fail to mount a .dmg for some reason, it will offer to send it to the default macOS Disk Image Mounter.
¹ Because this is the Internet, allow me to add: “YMMV. Use at your own risk. No warranty expressed or implied.”
hdiutilcommand-line tool that ships with macOS and therefore uses Apple’s private DiskImages framework indirectly.
(I’ll also add: you can set it to be the default app to open .dmg files, or you can just select a .dmg file in Finder and do: right-click » Open With » FastDMG for some DMGs if you with.)
The app is free with donations requested if you find the app useful.
Download from https://sveinbjorn.org/files/software/FastDMG.zip
An alternate to the other answers (which don't work in all cases) is to turn off gatekeeper. This lets you open a dmg without the annoyingly slooooow verify step.
This has the additional benefit (in my opinion) of removing the restriction on what apps you can install. Of course there is a risk if you aren't careful, but hey, its my/ your computer, so up to me/you if you want to take the risk.....
So the terminal command to turn off gatekeeper is
sudo spctl --master-disable
to re-enable if you want
sudo spctl --master-enable
Check status by
Addendum: For some reason, even with gatekeeper turned off, verify still occurs on some (not all!) dmgs that I have loaded down from websites - but there doesn't seem to be a pattern - different dmgs from the same website - one will verify, the other skip the verify and go straight to mounting. All the dmgs that I have created for my data open without verifying. Intriguing......