shell script for installing packages via Mac OS X's installer
program instead of GUI
If you want to automatically mount a DMG without having to click 'yes' to an EULA (if one exists) you can use either use FlashMount or the mntdmg
shell script or zsh function.
Note that under Mac OS X 10.8 you'll need to bypass GateKeeper for FlashMount by control-clicking it and choosing 'Open'. You will only need to do that once: