Gitlab version upgrade
Gitlab version upgrade
- To check current version, open GitLab console, go to admin area, on right side under "Components" we can see the Gitlab version
- If there written up to date with green color or if orange color then no issues, if its red color then we need to update the version.
Login to server gitlab.aws.poyar
Run below commands one by one
apt-get update
apt-get upgrade
- After running above upgrade commands, it will show you available updates to install, then you can check if GitLab update is there or not.. if we have to proceed, then press "y" and hit enter
if we dont want to proceed, then press "n" and hit enter
- If we want to hold specific update from the whole lot, then with below command we can set it on hold
apt-mark hold gitlab-ce
- We can check updates set on hold with below command
apt-mark showhold
- Below command used to check available GitLab updates with versions.. in this list current installed version will be marked with 3 stars (***)
apt-cache policy gitlab-ce
NOTE -
If current installed version is for example 14.5 and next available version is 15.5.. but never directly update it to 15.5
with cache policy command we can check the in between sub versions.. so we can go for 14.9 or 15.0 then after some days we can then go for 15.5
- With below command we can choose the update version from the list and mention in below command and run the command
apt-get --only-upgrade install gitlab-ce=17.0.0-ce.0
- At last reboot the server
reboot