Generalized package_manager func.