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

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

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

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


当前回答

您有两个选择(登录后)。

使用API url https://gitlab.example.com/api/v4/version(你可以使用私有令牌从命令行使用它),它返回{"version":"10.1.0","revision":"5a695c4"} 在浏览器https://gitlab.example.com/help中使用HELP url,您将看到GitLab的版本,即GitLab社区版10.1.0 5a695c4

其他回答

对于综合版本:

sudo gitlab-rake gitlab:env:info

例子:

System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   2.1.7p400
Gem Version:    2.2.5
Bundler Version:1.10.6
Rake Version:   10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:    8.2.2
Revision:   08fae2f
Directory:  /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL:        https://your.hostname
HTTP Clone URL: https://your.hostname/some-group/some-project.git
SSH Clone URL:  git@your.hostname:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:    2.6.8
Repositories:   /var/opt/gitlab/git-data/repositories
Hooks:      /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:        /opt/gitlab/embedded/bin/git

在centos上检查gitlab的版本

rpm -qa | grep gitlab-ce

我已经将我的服务器更新到GitLab 6.6.4,最终找到了在没有SSH访问服务器的情况下远程获取GitLab版本的方法。

您应该登录进入以下页面: https://your.domain.name/help

它显示了类似于:

GitLab 6.6.4 42e34ae GitLab是用于代码协作的开源软件。 ... 等。

这个命令行可以了解gitlab安装的所有数据

gitlab-rake gitlab:env:info

和这个命令行来了解是否有新的Gitlab版本,因为你可以更新Gitlab

yum --showduplicates list gitlab-ce

一旦知道了当前版本和最新的gitlab更新,就可以使用下面的命令行进行更新

yum install gitlab-ce-15.2.2-ce.0.el7

您有两个选择(登录后)。

使用API url https://gitlab.example.com/api/v4/version(你可以使用私有令牌从命令行使用它),它返回{"version":"10.1.0","revision":"5a695c4"} 在浏览器https://gitlab.example.com/help中使用HELP url,您将看到GitLab的版本,即GitLab社区版10.1.0 5a695c4