In this tutorial, we will explain How to install GitLab on Ubuntu.

GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing a wiki, issue-tracking and CI/CD pipeline features, using an open-source license, developed by GitLab Inc. It follows an open-core development model where the core functionality is released under an open source (MIT) license while the additional functionality is under a proprietary license.


You will need:

  • VPS running Ubuntu
  • Recommend at least 4GB of free memory

Step 1 – Prepare

To install GitLab you will need to Install and configure the necessary dependencies.

sudo apt-get install -y curl openssh-server ca-certificates

Next, install Postfix to send notification emails.

sudo apt-get install -y postfix

When asks for general type of mail configuration select Internet Site.

Enter system mail name.

Step 2 – Install GitLab

Now its time to install GitLab. So, add the Gitlab package repository to your system:

curl | sudo bash

And now install it. Change the EXTERNAL_URL to your server domain or IP Address.

sudo EXTERNAL_URL=”” apt-get install gitlab-ee

Step 3 – Login

To access Gitlab, open your browser and go to

Set your GitLab password. And click on Change your password button.

Now sign in GitLab by using default username root and the password you’ve sett.

You have successfully installed GitLab on CentOS.

Enjoy it.