Install an mpkg from the command line on OSX

sudo installer -pkg /Volumes/someapp/someapp.mpkg -target /
Installing most OSX apps is just a matter of dropping it in /Applications, either GUI-wise or with cp -r. However, many packages are distributed in "mpkg" format, and those have to be installed with an installer. If you don't want to go to the trouble of firing up VNC to install an mpkg, you can use the "installer" command. This will install an application from a .mpkg it to /Applications system-wide. To install a program for just one user, replace "-target /" with "-target username".

By: sud0er
2009-04-28 19:43:56

What Others Think

very useful.
battavia · 625 weeks ago
Command the form of data that has a line of the OSX version this will have to accelerate the attributes with some functions. Sky world has some bonus points that were at with the fields of desire data this need to grip the version of ports among the comments that was at the last of this.
gajulokise · 38 weeks and 5 days ago
Command linefu has a board where you can get computer codes which will connect with themes. And they also share dissertation help online which is so helpful for my tasks. You can get the latest Installing most OSX apps which is just a matter of dropping in Applications. Join their website for more details.
xokedo3427 · 3 weeks and 1 day ago
The financial cupboard on Friday recommended urgent resource measures for tourism operators battered by means of the coronavirus outbreak top essay writing service
jamesjohn · 1 week ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: