Call hc-pkg to get the source package Id of all the packages in the
given package database.

This is much less information than with dump, but also rather quicker.
Note in particular that it does not include the InstalledPackageId, just
the source PackageId which is not necessarily unique in any package db.