Gitlab and RedHat 8

Hi, has anyone sucessfully installed Gitlab in Redhat 8?

I had to upgrade my servers and now I can’t install GitLab because it asks for policycoreutils-python as dependence while it became python3-policycoreutils in this new Redhat Version.

Thanks in advance!

1 Like

Hi @angraxs2 and welcome to the GitLab Community forum!

I’ve attempted to install GitLab CentOS 7 package in RHEL 8 and faced the same issue in resolving this dependency.
Until an el.8 .rpm package is built and released, I would not suggest using it on RHEL8. If someone does find a workaround, please share.

GitLab is working to officially support RedHat8 and CentOS8 and plan to build and release el.8 packages as soon as possible.
You can weigh-in on the issue and/or subscribe for updates on RHEL8 support here:


EXTERNAL_URL=“blahblah” dnf install -y gitlab-ce --nobest works. It ignores the policycoreutils dependency.

reconfigure gets me into some issues but I will update this thread if I manage to get it up and running before the el8 packages releases.

I got configure to complete by doing the following:

  • Using external database server in /etc/gitlab/gitlab.rb (else you might have luck with chmod u+s /opt/gitlab/embedded/bin/chpst - DOING THIS POSES A MAJOR SECURITY RISK, ANYONE WITH EXECUTE RIGHTS TO THIS FILE WILL BE ABLE TO RUN THINGS AS ROOT)

  • Patched /opt/gitlab/embedded/cookbooks/package/libraries/storage_directory_helper.rb. I commented line 125.

  • Patched /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bcrypt-3.1.11/lib/bcrypt/engine.rb. I replaced line 125 with:
    __bc_crypt(secret.to_s, salt).gsub(/(\n|\x00).*/, '')

I’d suggest waiting for official packages where the upgrade is tested well enough and won’t break any production systems. The folks from CentOS needed more time to finally adopt all the changes from RHEL including app stream repositories and what not. Now everyone needs to create their build containers and ensure that CI pipelines work. I did that with my team for a different software last week, requires a lot of attention to make it right.

Seems GitLab is using PackageCloud as a repository management which takes care of signing the uploaded rpm/debs and creating an index for package managers. They didn’t add support for el8 yet -

So we’ll have to wait a little longer :wink:

I don’t like to make posts from 2 years ago back to life, but I still can’t find the answer for the question :slight_smile: Anyone??

Take your pic, any version between 12.8.x and latest 14.3.x

Install instructions: Download and install GitLab | GitLab

Very easy to find if you try.

1 Like