Add support for local package with remote site

I would like to download a package from remote site and install it.
This patch makes sense for us.