To check a version of a package with dpkg do this, i found the tip on askubuntu

~$ MY_PACKAGE="curl"
~$ dpkg-query --showformat='${Version}' --show "${MY_PACKAGE}"