It is considered safe to jump between patch versions and minor versions within one major version. For example, it is safe to:
- Upgrade the patch version:
8.9.0
->8.9.7
8.9.0
->8.9.1
8.9.2
->8.9.6
9.5.5
->9.5.9
10.6.3
->10.6.6
11.11.1
->11.11.8
12.0.4
->12.0.9
- Upgrade the minor version:
8.9.4
->8.12.3
9.2.3
->9.5.5
10.6.6
->10.8.7
11.3.4
->11.11.8
Upgrading the major version requires more attention. We cannot guarantee that upgrading between major versions will be seamless. As previously mentioned, major versions are reserved for backwards incompatible changes. We recommend that you first upgrade to the latest available minor version within your major version. By doing this, you can address any deprecation messages that could change behavior in the next major release. To ensure background migrations are successful, increment by one minor version during the version jump before installing newer releases.
For example: 11.11.x
-> 12.0.x
Please see the table below for some examples:
Latest stable version | Your version | Recommended upgrade path | Note |
---|---|---|---|
9.4.5 | 8.13.4 | 8.13.4 -> 8.17.7 -> 9.4.5 | 8.17.7 is the last version in version 8 |
10.1.4 | 8.13.4 | 8.13.4 -> 8.17.7 -> 9.5.10 -> 10.1.4 | 8.17.7 is the last version in version 8, 9.5.10 is the last version in version 9 |
11.3.4 | 8.13.4 | 8.13.4 -> 8.17.7 -> 9.5.10 -> 10.8.7 -> 11.3.4 | 8.17.7 is the last version in version 8, 9.5.10 is the last version in version 9, 10.8.7 is the last version in version 10 |
12.5.8 | 11.3.4 | 11.3.4 -> 11.11.8 -> 12.0.9 -> 12.5.8 | 11.11.8 is the last version in version 11 |
我的升级路线为:表格中最后一个
每次升级直接yum -y install gitlab-ce-版本号
就可以了
例如
yum -y install gitlab-ce-11.11.8
每升级一次,重载一下配置,重启一下gitlab
gitlab-ctl reconfigure
gitlab-ctl restart