Using apt-get to update specific versions#

In this example we will update Gitlab from version 12.9.2 to the latest version 14.6.3 on a Debian system.

Check the package name and version of the installed Gitlab package

dpkg -l | grep gitlab | grep ^ii
# gitlab-ce ... 12.9.2-ce.0

Make sure that we have all the latest packages available to us.

apt-get update

List the available versions for Gitlab

apt-cache madison gitlab-ce

Make sure that Gitlab performs as expected by hitting the endpoint and checking its logs at the same time

gitlab-ctl tail

Run upgrades as described in the Gitlab Update Docs. Be sure to verify correctness by following the verification step above.

apt-get install 'gitlab-ce=12.*'
apt-get install 'gitlab-ce=13.0.*'
apt-get install 'gitlab-ce=13.1.*'
apt-get install 'gitlab-ce=13.*'
apt-get install 'gitlab-ce=14.0.*'
apt-get install 'gitlab-ce=14.1.*'
apt-get install 'gitlab-ce=14.*'