script to install pkg dependencies