Question: how to install a dmg file on mac from terminal?
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.