some work on getting gpkg to pick the right version of package to install -- if latest package can't be installed it should default to older one that can be installed