DMG File – How to Tell If It Contains Universal Binaries for ARM64

dmginstallm1universal-binaries

Can you tell from a .dmg file if it contains arm64 binaries?

I've got a Mac mini M1 running Big Sur. I don't want to run apps under Intel, only arm64. I don't even have Rosetta installed, and want to avoid installing it.

I can install apps, try to run them, and see if they request Rosetta installation. But I'd like to know if the .dmg file contains binaries compiled for arm64 without running the application.

Best Answer

A DMG is just a container, it doesn't know about it contents.

If application is distributed without a package (so it's application you can just drag&drop to /Applications) you can run

hdiutil attach THE_DMG
file /Volume/THE_DMG/THE_APPLICATION.app/Contents/MacOS/*

to see what kind of binary it is.