• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install Gitlab on REDHAT 8.5

  • 00:04 cat /etc/os-release
  • 00:20 dnf install -y curl policycoreutils openssh-server perl
  • 00:38 systemctl enable sshd
  • 00:46 vim initial_root_password
  • 00:54 systemctl start sshd
  • 01:09 firewall-cmd --add-service=http --permanent
  • 01:31 wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm/download.rpm
  • 01:55 dnf install gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm
  • 02:18 gitlab-ctl reconfigure
  • 03:38 cd /etc/gitlab/
  • 03:44 ls
{{postValue.id}}

To Install Gitlab on REDHAT 8.5

Introduction:

GitLab is a web-based Git repository that comes up with free open and private repositories, issue-following capabilities, and wikis. This is a complete DevOps platform that allows professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security.

Installation Steps:

Step 1: Check the installed version of OS version by using the below command

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"

Step 2: Install the dependency packages by using the below command

[root@linuxhelp ~]# dnf install -y curl policycoreutils openssh-server perl
Updating Subscription Management repositories.
Unable to read consumer identity
AppStream                                       3.1 MB/s | 3.2 kB     00:00    
BaseOS                                          2.7 MB/s | 2.8 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64   10 kB/s | 8.4 kB     00:00    
===========================================================
 Package                      Arch   Version                            Repo                                                                           Size
--------------------------------------------------------------------------------
  systemtap-sdt-devel-4.5-3.el8.x86_64                                          
Complete!

Step 3: Enable the sshd Services by using the below command

 [root@linuxhelp ~]# systemctl enable sshd

Step 4: Start the sshd Services by using the below command

 [root@linuxhelp ~]# systemctl start sshd

Step 5: Add the firewall for http by using the below command

 [root@linuxhelp ~]# firewall-cmd --add-service=http --permanent 
Success

Step 6: Download the gitlab CE Package by using the below command

 [root@linuxhelp ~]# wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm/download.rpm

--2022-05-14 05:43:55--  https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm/download.rpm
2022-05-14 05:44:47 (18.3 MB/s) - ‘gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm’ saved [971743744/971743744]

Step 7: Install the gitlab-ce rpm package by using the below command

[root@linuxhelp ~]# dnf install gitlab-ce-14.4.2-ce.0.el8.x86_64.rpm

Updating Subscription Management repositories.
Unable to read consumer identity
Dependencies resolved.
Installing:
 gitlab-ce       x86_64       14.4.2-ce.0.el8          @commandline       927 M
===========================================================

Installed size: 2.0 G
Is this ok [y/N]: y
Is this ok [y/N]: y
       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.
  


     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  gitlab-ce-14.4.2-ce.0.el8.x86_64                                              
Complete!

Step 8: Reconfigure the gitlab by using the below command

[root@linuxhelp ~]# gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.17.4
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks  
Recipe: monitoring::prometheus
  * runit_service[prometheus] action restart (up to date)
  * execute[reload prometheus] action run
Recipe: monitoring::alertmanager
gitlab Reconfigured!

Step 9: Go to your favorite browser and search your ip address as shown in the below image

Snap 1

Step 10: Login Git as root user as shown in the below image

Snap 2

Step 11: Go to the following path on terminal to get Git default root password by using the below command

[root@linuxhelp ~]# cd /etc/gitlab/

Step 12: List the directory by using the below command

[root@linuxhelp gitlab]# ls
gitlab.rb  gitlab-secrets.json    initial_root_password  trusted-certs 

Step 13: Open the following file using Vim Command by using the below command

 [root@linuxhelp gitlab]# vim initial_root_password 

Step 14: copy the root password as shown in the below image Snap 3

Step 15: Paste the password on login Console as shown in the below image Snap 4

By this the Installation of GitLab on REDHAT 8.5 has been Completed.

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Gitlab-CE?

A

A GitLab is a web-based repository manager for team collaboration. It is used to create, and edit new projects and merge finished code into the existing projects.

Q

What is the RAM requirement for the GitLab server to install?

A

A Minimum of 4GB is required for this Gitlab server.

Q

Does GitLab provide project templates?

A

A There are no project templates in GitLab at the moment.

Q

Which command to access the gitlab-rails in the terminal?

A

The command to access the gitlab-rails in the terminal, execute the following command gitlab-rails console.
# gitlab-rails console production

Q

What is the advantage of GitLab CE Ominbus?

A

The advantage of GitLab CE Ominbus are
Secured codes.
Improved milestones.
Status availability.
Supports GUI.
Control over the repository.
Snippet supports.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.