How to check which version of GitLab is installed on the server?
I am about version specified in GitLab changelog:
https://gitlab.com/gitlab-org/gitlab-foss/b
I have updated my server to GitLab 6.6.4 and finally found the way to get version of GitLab remotely without SSH access to server.
You should be logged in to access the following page:
https://your.domain.name/help
It shows something similar to:
GitLab 6.6.4 42e34ae
GitLab is open source software to collaborate on code.
...
etc.
If using the Gitlab Docker image:
sudo cat /srv/gitlab/data/gitlab-rails/VERSION
Example output:
12.1.3
Instead of http://domain-name/help
you can also check your Gitlab version name in browser by logging as Admin
http://domain-name
Root
)Groups
tab, you can find Components
tabThere you can find not only Gitlab version but also different components like Gitlab Shell, Gitlab workhorse, Gitlab API etc, version numbers You will also find the suggestions to update the versions there
For omnibus versions:\
sudo gitlab-rake gitlab:env:info
Example:
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
You can access the version through a URL, the web GUI, and the ReST API.
An HTML page displaying the version can be displayed in a browser at https://your-gitlab-url/help
. The version is displayed only if you are signed in.
If you do not care to type this URL, you can also access the same HTML page from a menu in the GitLab web GUI:
Log in as any user, select the user icon in the upper right of the screen. Select Settings > Access Tokens. Create a personal access token and copy it to your clipboard.
In a Linux shell, use curl
to access the GitLab version:
curl --header "PRIVATE-TOKEN: personal-access-token" your-gitlab-url/api/v4/version
You have two choices (after logged in).
{"version":"10.1.0","revision":"5a695c4"}
GitLab Community Edition 10.1.0 5a695c4