interactive function to install packages