2

All of the answers to this question Is there a command to install a dmg work for me in installing a DMG file from the command line.

But I don't want to have users need to enter the sudo password, it is inconvenient.

How can I extract a DMG file to a executable directory without sudo? Or is there no way to do that?

  • If the software you wish to install is available via Homebrew Cask, you can install it from DMG without using sudo. You can search the Homebrew Cask database. – Nimesh Neema Apr 12 '18 at 14:19
  • 1
    Doesn't the second answer to the linked question work for you? That does not require sudo. A DMG by itself is not an installer, is it a problem of the software or installer within the DMG that is requiring sudo? – grg Apr 12 '18 at 14:20
  • Yeah it probably will. i just assumed that needed sudo ... i will try it thanks! – Nicholas DiPiazza Apr 12 '18 at 14:43
5

DMG is a disk image, not an installer. You can't see from the outside how a piece of software is installed just by it being distributed as a DMG.

That said, if the DMG contains an .app, your user might be able to "install" (copy) it to their ~/Applications/ folder. The software will be only available to this specific user.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .