Monday, September 20, 2010

Installing DMG or PKG from command-line on Mac, Apple TV

  • mounting dmg
hdid package.dmg
or, hdiutil attach package.dmg
or, hdiutil mount package.dmg
  • change directory
cd /Volumes/package/
  • install pkg
sudo installer -verbose -pkg package.pkg -target /
or, sudo /usr/sbin/installer -verbose -pkg package.pkg -target /
  • unmounting dmg
hdiutil detach /Volumes/package
or, hdiutil detach /Volumes/package -force




0 comments:

Post a Comment