latest
When the state is set to `latest` we should install absent packages, not just upgrade already-instaled packages. This should fix #22823.