
Title | Install Stata from a terminal | |
Author | Chinh Nguyen, StataCorp |
Stata's installer allows you to install Stata/MP, Stata/SE, or Stata/IC from a terminal.
<array> <string>installer_choice_1</string> </array>
installer_choice_1: Stata/MP installer_choice_2: Stata/SE installer_choice_3: Stata/IC
sudo installer -package /Volumes/Stata/Install\ Stata.pkg -applyChoiceChangesXML mychoice.xml -target /
From a terminal, use the following command to mount the disk image:
hdiutil attach /path/to/Stata16.dmg
When the disk image is mounted, a message will display something like this:
/dev/disk7 GUID_partition_scheme /dev/disk7s1 Apple_HFS /Volumes/Stata
Take note of the entry with the mounted disk image named Stata. You will use the entry's /dev node path to unmount the disk image (/dev/disk7s1).
Using the device name of the mounted disk image, use the following command to unmount the disk image:
hdiutil detach /dev/disk7s1