Question: how to install dmg file on mac from command line?
Answer: Method 2: Mount . If Terminal is not on the Dock, open it from Finder > Applications > Utilities. Step 2: Type cd ~/Desktop and press Enter key. Step 3: Type hdiutil attach googlechrome. dmg and press Enter key.