GitLab is a web-based DevOps platform that provides development teams with the tools to collaborate, automate repetitive tasks and build faster and better software. In this article, we will explore how to check the version of GitLab.
There are multiple ways to check the version of GitLab installed on the system:
Table of Content
1. Using the User Interface
Step 1: Log in to the GitLab instance
Open a browser and navigate to the GitLab instance.
Step 2: Click on the Help icon (?) located in the top-right corner of the page
This will open a dropdown menu with several options.
Step 3: Select "About GitLab" from the dropdown menu
A window will appear, displaying the GitLab version, along with other relevant information such as the GitLab Enterprise Edition version (if applicable) and the revision number.
Example:
If using GitLab version 15.8.1, the About GitLab window will display:
GitLab 15.8.1
GitLab Enterprise Edition 15.8.1-ee
Revision 79e5e3961e7
2. Using the Admin Area (for GitLab Administrators)
Step 1: Log in to the GitLab instance as an administrator
Use admin credentials to access the instance.
Step 2: Click on the Admin Area icon (wrench) located in the top-right corner of the page
This will direct to the Admin Area.
Step 3: Navigate to Overview > Metrics and Profiling in the left sidebar
Under the GitLab information section, the current version of GitLab will be displayed.
Example:
The GitLab information section will show:
GitLab Version: 15.8.13. Using the Command Line Interface (CLI)
Step 1: Open a terminal or command prompt
Use SSH or directly access the terminal of the server where GitLab is installed.
Step 2: Navigate to the root directory of the GitLab installation (if necessary)
For most installations, this step is not required as the gitlab-rake command can be run from any directory.
Step 3: Run the following command
sudo gitlab-rake gitlab:env:infoReview the output:
This command will output various details about the GitLab environment, including the GitLab version.
Example:
The output of the sudo gitlab-rake gitlab:env:info command will include:
GitLab information
Version: 15.8.1
Revision: 79e5e3961e7
4. Checking the Version File
Step 1: Access GitLab server's file system
Use SSH to access the file system of the server.
Step 2: Navigate to the GitLab installation directory (usually /opt/gitlab)
The exact location may vary depending on the installation method.
Step 3: Open the VERSION file using a text editor
cat /opt/gitlab/VERSIONCheck the file:
The file will contain the GitLab version number on a single line.
15.8.1