How to upgrade Gitlab to the latest version
Introduction
GitLab is a web-based Git repository that provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security
Prerequisites
- A sudo privileged user to SSH the server
- Gitlab credential to verify the functionality
Implementation
Step 1: SSH to the server where the Gitlab has been installed
$ ssh user@IP
Step 2: Update the available packages
$ sudo apt-get update
![](https://pheonixsolutions.com/blog/wp-content/uploads/2023/11/Screen-Shot-2023-11-24-at-10.38.55-PM-1024x537.png)
Step 3: Update the Gitlab to the latest version
(I) If the edition is Community Edition (CE) execute the below command
$ sudo apt-get install gitlab-ce
![](https://pheonixsolutions.com/blog/wp-content/uploads/2023/11/image-2-1024x262.png)
(II) If the edition is Enterprise Edition (EE) execute the below command
$ sudo apt-get install gitlab-ee
![](https://pheonixsolutions.com/blog/wp-content/uploads/2023/11/Screen-Shot-2023-11-24-at-11.04.10-PM-1024x202.png)
Step 4: Restart the Gitlab
$ sudo gitlab-ctl restart
Step 5: Log in to the Gitlab and navigate to the help to verify the version
![](https://pheonixsolutions.com/blog/wp-content/uploads/2023/11/Screen-Shot-2023-11-24-at-11.10.56-PM.png)