Gitlab怎么升级

  1. 环境查看
    系统环境
# cat /etc/redhat-release 
Rocky Linux release 9.4 (Blue Onyx)
[root@RockyEs01003081 ~]# uname -a
Linux RockyEs01003081 5.14.0-427.35.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 12 18:24:53 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

软件环境

  1. 查询升级方法
    https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/
    查询现有Gitlab版本
    image
    image
    查询升级线路,会列出需要逐步升级的软件版本
    image
    image

  2. 升级

# 设置源
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh|bash
# 按照上一步列的升级版本步骤升级
# yum install gitlab-ce-16.11.10
# yum install gitlab-ce-17.1.8
# yum install gitlab-ce-17.3.7
# yum install gitlab-ce-17.5.5
# yum install gitlab-ce-17.7.2

只能使用yum安装不能下载rpm包后使用rpm -ivh命令安装

会报以下错误
image

file /opt/gitlab/embedded/service/gitlab-rails/db/docs/ai self hosted models.ymlfrom install of gitlab-ce-17.5.5-ce.0.el9.x86 64 conflicts wh file from package gitlab-ce-17.3.7-ce.0.el9.x86 64
posted @ 2025-01-16 10:35  minseo  阅读(146)  评论(0)    收藏  举报