OSX install pkg in terminal


cd /
sudo mkdir /Volumes/mnt
sudo mount_afp afp://server/mnt /Volumes/mnt
sudo cp -R /Volumes/mnt/software.pkg /folder
sudo installer -pkg /folder/software.pkg -target / 
sudo shutdown -r now

* If you get permission denied while installing/coying the pkg from server, it is worth to check permission set on the pkg file.