wpkg --exact-version

Options Comments
--admindir Define the administration directory, where the database of the installed packages resides.
--debug Define a set of flags of things to print out for debug purposes.
--instdir Define the installation directory, where the data files are installed on the target.
--quiet Not used.
--root Define the installation root path.
--verbose Not used.

The --exact-version command checks the version of a package against the version specified on the command line. If they match, then wpkg exits with zero (0), otherwise it exits with one (1). This is useful to check that a package has the right version to be used by another.

This command comes from the pkg-config support implemented in wpkg.

See also the --max-version, --atleast-version and --atleast-wpkg-version commands.