如何查看服务器上安装了哪个版本的GitLab ?

我是关于GitLab更新日志中指定的版本: https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md

例如:“6.5.0”,“6.4.3”等。

Сan这只能通过终端吗? 有没有办法远程(用浏览器而不是终端)做到这一点?


当前回答

如果你使用的是自托管版本的GitLab,那么你可以考虑运行这个命令。

grep gitlab /opt/gitlab/version-manifest.txt

其他回答

我有版本:12.2.0-ee,我尝试了URL通过(https://yourgitlab/help),但我没有得到这个信息。 另一方面,我用gitlab-rake成功地进入命令行:

sudo gitlab-rake gitlab:env:info

... GitLab信息 版本:12.2.0-ee ...

CD /opt/gitlab

猫version-manifest.txt

例子:

gitlab-ctl 6.8.2-omnibus gitlab-rails v6.8.2

当前gitlab版本为6.8.2

您可以使用包管理器查询已安装的gitlab-ce版本。如果它恰好是debian或ubuntu,就像这样:

dpkg -l | grep gitlab-ce | tr -s [:space:] | cut -d" " -f3

应该与其他发行版类似地工作,假设您使用包管理器进行安装。

获取有关GitLab及其运行系统的信息:

bundle exec rake gitlab:env:info RAILS_ENV=production

gitlab:env:info输出示例

System information
System:     Arch Linux
Current User:   git
Using RVM:  yes
RVM Version:    1.20.3
Ruby Version:   2.0.0p0
Gem Version:    2.0.0
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:    5.2.0.pre
Revision:   4353bab
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.arch
HTTP Clone URL: http://gitlab.arch/some-project.git
SSH Clone URL:  git@gitlab.arch:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.4.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

阅读这篇文章,它将帮助你。

除了http://domain-name/help,您还可以在浏览器中以Admin身份登录来检查您的Gitlab版本名

访问http://domain-name 以管理员(Root)身份登录Gitlab 进入管理区域 在右侧的“组”标签下,您可以找到“组件”标签

在那里,你不仅可以找到Gitlab版本,还可以找到不同的组件,如Gitlab Shell、Gitlab workhorse、Gitlab API等,以及版本号 您还可以在那里找到更新版本的建议