Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to install a .pkg using a terminal ? (I wanted to install an app through ssh).

share|improve this question

1 Answer 1

up vote 11 down vote accepted

/usr/sbin/installer

The installer command is used to install Mac OS X installer packages to a specified domain or volume. The installer command installs a single package per invocation, which is specified with the -package parameter ( -pkg is accepted as a synonym). It may be either a single package or a metapackage. In the case of the metapackage, the packages which are part of the default install will be installed unless disqualified by a package's check tool(s).

See man installer for the full functionality.

share|improve this answer
5  
I usually type "sudo installer -pkg /path/to/package.pkg -target /" and it works fine. –  PEM8000 Nov 21 '12 at 14:22
    
Perfect, thanks to you both. –  Matthieu Riegler Nov 21 '12 at 23:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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