I have just started to work on a Mac terminal for a school work.

My question is: which commands do I have to write to install a program (if I have the .dmg file) by using the terminal only?

  • You need hdiutil to mount the disk image.
  • If your installation is done with mac packages, then use installer
  • If your installation is drag and drop, then use install

The manuals are quite extensive. Please read them all carefully.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.