{"id":516,"date":"2014-08-16T23:58:25","date_gmt":"2014-08-16T23:58:25","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=516"},"modified":"2014-08-16T23:59:12","modified_gmt":"2014-08-16T23:59:12","slug":"how-to-install-an-os-x-pkg-file-from-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-install-an-os-x-pkg-file-from-command-line\/","title":{"rendered":"How to Install an OS X .pkg file from Command Line"},"content":{"rendered":"<p>The following command installs the .pkg to the local hard disk.<\/p>\n<pre>installer -pkg \/Users\/username\/Desktop\/package.pkg -target LocalSystem<\/pre>\n<p>You can also replace &#8220;LocalSystem with a &#8220;\/&#8221; they both do the same thing.<\/p>\n<p>If you want to install the package on a different disk you can change the -target to the drives path.<\/p>\n<pre>installer -pkg package.pkg -target \"\/Volumes\/Macintosh HD2\"<\/pre>\n<p>You can find more about the command by typing &#8220;man installer&#8221; in the terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following command installs the .pkg to the local hard disk. installer -pkg \/Users\/username\/Desktop\/package.pkg -target LocalSystem You can also replace &#8220;LocalSystem with a &#8220;\/&#8221; they both do the same thing. If you want to install the package on a different &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-install-an-os-x-pkg-file-from-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[164,165,8,163,274,166],"class_list":["post-516","post","type-post","status-publish","format-standard","hentry","category-os-x","tag-pkg","tag-apple","tag-command-line-2","tag-install-pkg","tag-os-x","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":518,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/516\/revisions\/518"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}