Mac Installer: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Mac =Overview= Installs .pkg files. To see the content: Installer → File → Show Files. To see the log: Command + L Package "receipts" ar...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
=Overview=
=Overview=


Installs .pkg files.
The installer command is used to install Mac OS X installer packages (.pkg or .mpkg files) 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).


To see the content: Installer → File → Show Files.
To see the content: Installer → File → Show Files.
Line 17: Line 17:
lsbon -f /var/db/receipts/<package-name>
lsbon -f /var/db/receipts/<package-name>
</syntaxhighlight>
</syntaxhighlight>
=Command Line Installation=
<syntaxhighlight lang='bash'>
sudo installer -pkg /path/to/application.pkg -target /
</syntaxhighlight>
Here / is the mount point of the Mac volume. -target accepts path like "/Volumes/Macintosh HD", or /dev/disk0 also.

Latest revision as of 23:40, 29 December 2020

Internal

Overview

The installer command is used to install Mac OS X installer packages (.pkg or .mpkg files) 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).

To see the content: Installer → File → Show Files.

To see the log: Command + L

Package "receipts" are store in /var/db/receipts

To see where the file were put:

lsbon -f /var/db/receipts/<package-name>

Command Line Installation

sudo installer -pkg /path/to/application.pkg -target /

Here / is the mount point of the Mac volume. -target accepts path like "/Volumes/Macintosh HD", or /dev/disk0 also.