dpkg-query does not return version, as expected
In CONTRIBUTING.md, suggested dpkg-query -W gitlab
does not return version of installed GitLab package, as expected
Observe:
$ dpkg-query -W gitlab
gitlab
A better way would be to use grep, as in dpkg-query -W | grep gitlab
or to use a wildcard in package name
$ dpkg-query -W gitlab\*
gitlab
gitlab-ce 9.0.2-ce.0
gitlab-ee
Running GitLab CE 9.0.2-ce.0 over clean Debian 8/Jessie:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux