How to check the version of GitLab?

后端 未结 15 1428
我寻月下人不归
我寻月下人不归 2020-12-12 13:49

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

相关标签:
15条回答
  • 2020-12-12 13:52

    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.

    0 讨论(0)
  • 2020-12-12 13:52

    If using the Gitlab Docker image:

    sudo cat /srv/gitlab/data/gitlab-rails/VERSION
    

    Example output:

    12.1.3
    
    0 讨论(0)
  • 2020-12-12 13:53

    Instead of http://domain-name/help you can also check your Gitlab version name in browser by logging as Admin

    • Go to http://domain-name
    • Log in to Gitlab as Admin (Root)
    • Go to Admin Area
    • On the right corner, below Groups tab, you can find Components tab

    There 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

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-12 13:57

    You can access the version through a URL, the web GUI, and the ReST API.

    Via a URL

    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.

    Via a menu in the web GUI

    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:

    In GitLab 11 and later

    1. Log in to GitLab
    2. Click on the drop down menu in the upper right. Select Help.
    3. The GitLab version appears at the top of the page

    In earlier versions, like GitLab 9

    1. Log in to GitLab
    2. Click on the drop down menu in the upper left. Select Help.
    3. And then the version appears at the top of the page

    Via the ReST API

    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
    
    0 讨论(0)
  • 2020-12-12 13:58

    You have two choices (after logged in).

    1. Use API url https://gitlab.example.com/api/v4/version (you can use it from command line with private token), it returns {"version":"10.1.0","revision":"5a695c4"}
    2. Use HELP url in browser https://gitlab.example.com/help and you will see version of GitLab, ie GitLab Community Edition 10.1.0 5a695c4
    0 讨论(0)
提交回复
热议问题