add install local packages, also introduce some error handling

Merged Bernhard Landauer requested to merge install-local-pkg-rebase into master

Merge request reports