Installing packages from the terminal

sudo installer -pkg Desktop/Java1.4.1.pkg -target /