Step To Install Gitlab-CE(Community Edition) Server On Linux 7

Step To Install Gitlab-CE

Step To Install Gitlab-CE (Community Edition) Server

Step to install Gitlab-CE is a web-based GUI repository Manager, issue tracking and CI/CD Pipelines features which is an Open Source GIT Version control system. We can install and configure the GitLab server using repo in Linux.

Gitlab as CI/CD pipeline

There are two types of Gitlab Available

1. Gitlab-CE

2. Gitlab Enterprise

Check Out: How To Reset Gitlab Root Password

Gitlab-CE is free to use but you won’t get any technical support if you use this one.

Gitlab-EE is an Enterprise version of Gitlab. They will provide technical support.

Useful Gitlab Points

You can also use Gitlab as CI/CD pipeline which means you can create a pipeline for your project and deploy it to a production server like you do the same as Jenkins. Gitlab is easy to use, a secure and a very good option as a Software deployment cycle.

You may refer link for more info: Gitlab doc

As a Security purpose, it provides you with the integration with AD Server. So you can control access on the repository and no one will be able to login in Gitlab server if they do not have an AD account.

Check Out: How To Change Gitlab IP URL With Hostname

Hardware Requirements :

  1. CPU – 2 core
  2. RAM – 4 GB

 Software Requirements: this packages should be installed on the machine

  1. policycoreutils and curl
  2. Openssh Server and client both
  3. Mail Server (Postfix ) or any other SMTP


  1. postfix-2.10.1-6.el7.x86_64
  2. policycoreutils-python.x86_64

I’m assuming you have installed those packages on your machine. You also need to allow HTTP  service in a firewall if you want to access it from outside.

Check Out: How To Merge Branch In Git On Gitlab

Step 1: Add the port 80 in the firewall

firewall-cmd -–permanent --add-port=80/tcp

firewall-cmd --reload

Now you have to install the packages which are required for Gitlab

yum install policycoreutils-python.x86_64 postfix-2.10.1-6.el7.x86_64 openssh-server –y

During Postfix installation a configuration window may appear. Select “internet site ” Use your server external DNS for “ mail name” and press enter. If the screen still appears, continue and accept it.

Enable & Start the services of Openssh, Postfix

systemctl start opensshd && systemctl enable opensshd

systemctl start postfix && systemctl enable postfix

Step 2: Add the GitLab packages repository and install it

Check Out:  Make Admin User After Authentication Gitlab With AD

curl | sudo bash

install gitlab server

Step 3: Now you have to install Gitlab Packages and change URL to your at which you want to install Gitlab. The installation will automatically start at the URL.

EXTERNAL_URL="" yum install -y gitlab-ce

gitlab configure linux

Only one package will be installed

gitlab install using repo

Step 4: If you want to change your URL then go to the location given below.

vim /etc/gitlab/gitlab.rb

Then run below commands

gitlab-ctl reconfigure

Step 5: Go to the browser and type http://ip or http://hostname

You’re done. install gitlab server linux using repo configure

Leave a Reply

Notify of