New function `install_packages`; replace method for objects in shared environments in Collection class