make update_packages work in non-interactive sessions