How do you install a .dmg package from the command line?
hdiutil
and cp
. hdiutil mount cotvnc-20b4.dmg
cp
command to copy the application to /Applications:sudo cp -R '/Volumes/Chicken of the VNC/Chicken of the VNC.app' /Applications
-R
switch means to copy recursively, in other words, copy everything from that location including all subdirectories and files below. It is important to leave off the trailing '/' from the 'Chicken of the VNC.app' directory, or the command will not copy the directory itself, just the contents. After entering your password, the application will be installed and ready to use. installer
command instead of cp
. To install a .pkg, use this command:sudo installer -package /path/to/package -target '/Volumes/Macintosh HD'
cd ~
hdiutil unmount '/Volumes/Chicken of the VNC/'
'/Volumes/Chicken of the VNC/' unmounted successfully.
How do you install a .dmg package from the command line?
hdiutil
and cp
. hdiutil mount cotvnc-20b4.dmg
cp
command to copy the application to /Applications:sudo cp -R '/Volumes/Chicken of the VNC/Chicken of the VNC.app' /Applications
-R
switch means to copy recursively, in other words, copy everything from that location including all subdirectories and files below. It is important to leave off the trailing '/' from the 'Chicken of the VNC.app' directory, or the command will not copy the directory itself, just the contents. After entering your password, the application will be installed and ready to use. installer
command instead of cp
. To install a .pkg, use this command:sudo installer -package /path/to/package -target '/Volumes/Macintosh HD'
cd ~
hdiutil unmount '/Volumes/Chicken of the VNC/'
'/Volumes/Chicken of the VNC/' unmounted successfully.