Use apt-cache policy
:
$ apt-cache policy gitlab-ce
gitlab-ce:
Installed: 8.6.1-ce.0
Candidate: 8.7.0-ce.0
Version table:
8.7.0-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.7-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.6-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.5-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.4-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.3-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.6.2-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
*** 8.6.1-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
8.6.0-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.5.11-ce.1 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
8.5.10-ce.0 0
500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
A versão listada como Candidate
será selecionada. A versão atual (se houver) será listada como Installed
e marcada com asteriscos.