
The package manager will provide various package query tools that allow one to programatically determine:
OGPM Query File Dependancies.vi

Returns the list of packages that a file depends on
OGPM Query File.vi

Returns the package name that a file belongs to
OGPM Query Installed Packages.vi

Returns a list of all packages installed on a system
OGPM Query Installed Pkgs Dependant on Package.vi

Returns the list of packages that a package depends on
OGPM Query Package.vi

Returns a package info cluster

The package info cluster will contain information about a package