queryPackage function

Query package name.