⚠️ This is an old post.

Content may be out of date.

The installer utility can be used to install .pkg software installation files from the command line:

installer -pkg /path/to/pkg/software/installation/file.pkg -target /

Gist on GitHub