upgrade-from: Using update_repositories

It's better using functions from packages instead of doing it manually