get the versions of a package that is installed at top level