added update_packages: collect last version of packages