installing or upgrading a package in OS X from the terminal

I wanted to install Boxee without disturbing my wife on the mac mini, so here is what I did.

  1. 1. transfer the disk image to the host
  2. mount the disk image
  3. install the package
  4. unmount the disk image
  5. enjoy

grey:~ brandon$ hdiutil attach boxee-0.9.22.13692.dmg

……………………………………………………………………
grey:~ brandon$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
/dev/disk1s2 on /Volumes/boxee-0.9.22 (hfs, local, nodev, nosuid, read-only, noowners, mounted by brandon)

grey:~ brandon$ installer -pkg “/Volumes/boxee-0.9.22/boxee-0.9.22.13692.mpkg” -target /
installer: This package requires authentication to install.

grey:~ brandon$ sudo installer -pkg “/Volumes/boxee-0.9.22/boxee-0.9.22.13692.mpkg” -target /
Password:

installer: Package name is Boxee
installer: Upgrading at base path /
installer: The upgrade was successful.

grey:~ brandon$ hdiutil detach boxee-0.9.22.13692.dmg
hdiutil: detach failed – No such file or directory

grey:~ brandon$ hdiutil detach /Volumes/
boxee-0.9.22/ grey/

grey:~ brandon$ hdiutil detach /Volumes/boxee-0.9.22/
“disk1” unmounted.
“disk1” ejected.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.