Redmine#5342: test non-filebased repo; fix partial package names and upgrades

Also addresses Redmine#2986 and Redmine#5245