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

Checksumming Driver Descriptor Map (DDM : 0)…
Driver Descriptor Map (DDM : 0): verified CRC32 $46BBEB6C
Checksumming Apple (Apple_partition_map : 1)…
Apple (Apple_partition_map : 1): verified CRC32 $34E60247
Checksumming disk image (Apple_HFS : 2)…
……………………………………………………………………
disk image (Apple_HFS : 2): verified CRC32 $87B6C49A
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
verified CRC32 $7462547A
/dev/disk1 Apple_partition_scheme
/dev/disk1s1 Apple_partition_map
/dev/disk1s2 Apple_HFS /Volumes/boxee-0.9.22
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.

Trackback URL

No Comments on "installing or upgrading a package in OS X from the terminal"

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 56,337 bad guys.

Subscribe to Comments