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

  1. A sudo privileged user to SSH the server
  2. 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

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

(II) If the edition is Enterprise Edition (EE) execute the below command

$ sudo apt-get install gitlab-ee

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

meenakshi k

Meenakshi is a DevOps Engineer with 4 years of experience in AWS, Linux, server administration, server maintenance, Docker, Kubernetes, CI/CD, monitoring, security, HIPAA compliance, and technical customer support. Areas of expertise include cloud operations, deployment management, system reliability, secure server environments, and technical issue resolution, with a focus on evolving DevOps practices and industry trends.

Leave a Reply

Scroll to Top