Hi
Thanks for the guide. I install gitlab-ce on Debian, CentOS and Ubuntu Server LTS boxes.
I normally install GitLab with the Omnibus package and perform patch updates on a monthly basis. When for some reason I lag to apply the patches (happened twice last year because other things were more relevant for management), I catched up with the following:
First, list the installed version with apt
and check where you are. I understand you were in 6.5.1 before gitlab-ce
omnibus versions were available (gitlab-ce/jessie 7.10.1~omnibus.1-1 amd64
).
# apt list --installed gitlab-ce
gitlab-ce/jessie,now 10.1.1-ce.0 amd64 [installed,upgradable to: 10.7.3-ce.0]
Once apt
shows the status for our gitlab-ce
package. I check all the available versions of the omnibus in order to make an upgrade strategy.
# apt list --all-versions gitlab-ce | egrep 'installed|upgradable'
gitlab-ce/jessie 10.7.3-ce.0 amd64 [upgradable from: 10.7.1-ce.0]
gitlab-ce/jessie,now 10.7.1-ce.0 amd64 [installed,upgradable to: 10.7.3-ce.0]
I always set up a maintenance window and take a VM snapshot before applying any updates, so rollback is not an issue here.
My update strategy hops from minor releases by performing small upgrades (more or less in the same way as you did):
- Check all the available versions
- Use
aptitude
to jump from current versionX.Y.M
toX.Y.Z
, whereZ
is the max revision for that minor version.
- In my case from
10.1.1
to10.1.7
# aptitude --download-only --assume-yes safe-upgrade gitlab-ce=10.1.7-ce.0
# aptitude --show-why--assume-yes safe-upgrade gitlab-ce=10.1.7-ce.0
# aptitude autoclean
# aptitude clean
- After that, jump from
X.Y.Z
toX.A.0
, whereA=Y+1
- In my case from
10.1.7
to10.2.0
# aptitude --download-only --assume-yes safe-upgrade gitlab-ce=10.2.0-ce.0
# aptitude --show-why--assume-yes safe-upgrade gitlab-ce=10.2.0-ce.0
# aptitude autoclean
# aptitude clean
- Upgrade from
X.A.0
toX.A.Z
, whereZ
is the max revision for that minor version.
# aptitude --download-only --assume-yes safe-upgrade gitlab-ce=10.2.8-ce.0
# aptitude --show-why--assume-yes safe-upgrade gitlab-ce=10.2.8-ce.0
# aptitude autoclean
# aptitude clean
- Repeat from 3 until you reach the latest version for omnibus.
Extra
I normally do something like this to check my upgrade path:
# apt list --all-versions gitlab-ce
Listing... Done
gitlab-ce/jessie 10.7.3-ce.0 amd64 [upgradable from: 10.1.1-ce.0]
...
gitlab-ce/jessie 10.7.0-ce.0 amd64
--------
gitlab-ce/jessie 10.6.5-ce.0 amd64
...
gitlab-ce/jessie 10.6.0-ce.0 amd64
--------
gitlab-ce/jessie 10.5.8-ce.0 amd64
...
gitlab-ce/jessie 10.5.0-ce.0 amd64
--------
gitlab-ce/jessie 10.4.4-ce.0 amd64
...
gitlab-ce/jessie 10.4.0-ce.0 amd64
--------
gitlab-ce/jessie 10.3.7-ce.0 amd64
...
gitlab-ce/jessie 10.3.0-ce.0 amd64
--------
gitlab-ce/jessie 10.2.8-ce.0 amd64
...
gitlab-ce/jessie 10.2.0-ce.0 amd64
--------
gitlab-ce/jessie 10.1.7-ce.0 amd64
...
gitlab-ce/jessie,now 10.1.1-ce.0 amd64 [installed,upgradable to: 10.7.3-ce.0]
gitlab-ce/jessie 10.1.0-ce.0 amd64
--------
gitlab-ce/jessie 10.0.7-ce.0 amd64
...
gitlab-ce/jessie 10.0.0-ce.0 amd64
--------
...
gitlab-ce/jessie 7.10.1~omnibus.1-1 amd64