Install GitLab using the Linux package

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab Self-Managed

The Linux packages are mature, scalable, and are used on GitLab.com. If you need additional flexibility and resilience, we recommend deploying GitLab as described in the reference architecture documentation.

The Linux package is quicker to install, easier to upgrade, and contains features to enhance reliability not found in other installation methods. Install through a single package (also known as Omnibus GitLab) that bundles all the different services and tools required to run GitLab. See the installation requirements to learn about the minimum hardware requirements.

Linux packages are available in our packages repository for:

Check that the required GitLab version is available for your host operating system.

Supported platforms

GitLab officially supports long term support (LTS) versions of operating systems. Some operating systems, such as Ubuntu, have a clear distinction between LTS and non-LTS versions. However, there are other operating systems, openSUSE for example, that don’t follow the LTS concept.

We will usually provide support for a version of an operating system until it is no longer supported by its vendor, where support is defined as standard or maintenance support and not as expanded, extended, or premium support. However, we might end support earlier than the operating system’s vendor in these circumstances:

  • Business considerations: Including but not limited to low customer adoption, disproportionate maintenance costs, or strategic product direction changes.
  • Technical constraints: When third-party dependencies, security requirements, or underlying technology changes make continued support impractical or impossible.
  • Vendor actions: When operating system vendors make changes that fundamentally impact our software’s functionality or when required components become unavailable.

We will usually issue a deprecation notice at least 6 months before support for any operating system version is discontinued, on a best-effort basis. In cases where technical constraints, vendor actions, or other external factors require that we provide shorter notice periods, we will communicate any support changes as soon as reasonably possible.

amd64 and x86_64 refer to the same 64-bit architecture. The names arm64 and aarch64 are also interchangeable and refer to the same architecture.

Operating systemFirst supported GitLab versionArchitectureOperating system EOLProposed last supported GitLab versionUpstream release notes
AlmaLinux 8GitLab CE / GitLab EE 14.5.0x86_64, aarch64 1Mar 2029GitLab CE / GitLab EE 21.10.0AlmaLinux details
AlmaLinux 9GitLab CE / GitLab EE 16.0.0x86_64, aarch64 1May 2032GitLab CE / GitLab EE 25.0.0AlmaLinux details
Amazon Linux 2GitLab CE / GitLab EE 14.9.0amd64, arm64 1June 2026GitLab CE / GitLab EE 19.1.0Amazon Linux details
Amazon Linux 2023GitLab CE / GitLab EE 16.3.0amd64, arm64 1June 2029GitLab CE / GitLab EE 22.1.0Amazon Linux details
Debian 11GitLab CE / GitLab EE 14.6.0amd64, arm64 1Aug 2026GitLab CE / GitLab EE 19.3.0Debian Linux details
Debian 12GitLab CE / GitLab EE 16.1.0amd64, arm64 1June 2028GitLab CE / GitLab EE 19.3.0Debian Linux details
openSUSE Leap 15.6GitLab CE / GitLab EE 17.6.0x86_64, aarch64 1Dec 2025TBDopenSUSE details
SUSE Linux Enterprise Server 12GitLab EE 9.0.0x86_64Oct 2027TBDSUSE Linux Enterprise Server details
SUSE Linux Enterprise Server 15GitLab EE 14.8.0x86_64Dec 2024TBDSUSE Linux Enterprise Server details
Oracle Linux 8GitLab CE / GitLab EE 12.8.1x86_64July 2029GitLab CE / GitLab EE 22.2.0Oracle Linux details
Oracle Linux 9GitLab CE / GitLab EE 16.2.0x86_64June 2032GitLab CE / GitLab EE 25.1.0Oracle Linux details
Red Hat Enterprise Linux 8GitLab CE / GitLab EE 12.8.1x86_64, arm64 1May 2029GitLab CE / GitLab EE 22.0.0Red Hat Enterprise Linux details
Red Hat Enterprise Linux 9GitLab CE / GitLab EE 16.0.0x86_64, arm64 1May 2032GitLab CE / GitLab EE 25.0.0Red Hat Enterprise Linux details
Ubuntu 20.04GitLab CE / GitLab EE 13.2.0amd64, arm64 1April 2025GitLab CE / GitLab EE 18.8.0Ubuntu details
Ubuntu 22.04GitLab CE / GitLab EE 15.5.0amd64, arm64 1April 2027GitLab CE / GitLab EE 19.11.0Ubuntu details
Ubuntu 24.04GitLab CE / GitLab EE 17.1.0amd64, arm64 1April 2029GitLab CE / GitLab EE 21.11.0Ubuntu details

Footnotes:

  1. Known issues exist for running GitLab on ARM.

Unofficial, unsupported installation methods

The following installation methods are provided as-is by the wider GitLab community and are not supported by GitLab:

End-of-life versions

GitLab provides Linux packages for operating systems only until their end-of-life (EOL) date. After the EOL date, GitLab stops releasing official packages.

However, sometimes we don’t deprecate an operating system even after it’s EOL because we can’t provide packages for a newer version. The most common reason for this is PackageCloud, our package repository provider, not supporting newer versions and so we can’t upload packages to it.

The list of deprecated operating systems and the final GitLab release for them can be found below:

OS versionEnd of lifeLast supported GitLab version
CentOS 6 and RHEL 6November 2020GitLab CE / GitLab EE 13.6
CentOS 7 and RHEL 7June 2024GitLab CE / GitLab EE 17.7
CentOS 8December 2021GitLab CE / GitLab EE 14.6
Oracle Linux 7December 2024GitLab CE / GitLab EE 17.7
Scientific Linux 7June 2024GitLab CE / GitLab EE 17.7
Debian 7 WheezyMay 2018GitLab CE / GitLab EE 11.6
Debian 8 JessieJune 2020GitLab CE / GitLab EE 13.3
Debian 9 StretchJune 2022GitLab CE / GitLab EE 15.2
Debian 10 BusterJune 2024GitLab CE / GitLab EE 17.5
OpenSUSE 42.1May 2017GitLab CE / GitLab EE 9.3
OpenSUSE 42.2January 2018GitLab CE / GitLab EE 10.4
OpenSUSE 42.3July 2019GitLab CE / GitLab EE 12.1
OpenSUSE 13.2January 2017GitLab CE / GitLab EE 9.1
OpenSUSE 15.0December 2019GitLab CE / GitLab EE 12.5
OpenSUSE 15.1November 2020GitLab CE / GitLab EE 13.12
OpenSUSE 15.2December 2021GitLab CE / GitLab EE 14.7
OpenSUSE 15.3December 2022GitLab CE / GitLab EE 15.10
OpenSUSE 15.4December 2023GitLab CE / GitLab EE 16.7
OpenSUSE 15.5December 2024GitLab CE / GitLab EE 17.8
SLES 15 SP2December 2024GitLab EE
Raspbian WheezyMay 2015GitLab CE 8.17
Raspbian JessieMay 2017GitLab CE 11.7
Raspbian StretchJune 2020GitLab CE 13.3
Raspberry Pi OS BusterJune 2024GitLab CE 17.7
Ubuntu 12.04April 2017GitLab CE / GitLab EE 9.1
Ubuntu 14.04April 2019GitLab CE / GitLab EE 11.10
Ubuntu 16.04April 2021GitLab CE / GitLab EE 13.12
Ubuntu 18.04June 2023GitLab CE / GitLab EE 16.11

Raspberry Pi OS (32-bit - Raspbian)

GitLab dropped support for Raspberry Pi OS (32 bit - Raspbian) with GitLab 17.11 being the last version available for the 32-bit platform. Starting with GitLab 18.0, you should move to Raspberry Pi OS (64 bit) and use the Debian arm64 package.

For information on backing up data on a 32-bit OS and restoring it to a 64-bit OS, see Upgrading operating systems for PostgreSQL.

Uninstall the Linux package

To uninstall the Linux package, you can opt to either keep your data (repositories, database, configuration) or remove all of them:

  1. Optional. To remove all users and groups created by the Linux package before removing the package:

    sudo gitlab-ctl stop && sudo gitlab-ctl remove-accounts

    If you have a problem removing accounts or groups, run userdel or groupdel manually to delete them. You might also want to manually remove the leftover user home directories from /home/.

  2. Choose whether to keep your data or remove all of them:

    • To preserve your data (repositories, database, configuration), stop GitLab and remove its supervision process:

      sudo systemctl stop gitlab-runsvdir
      sudo systemctl disable gitlab-runsvdir
      sudo rm /usr/lib/systemd/system/gitlab-runsvdir.service
      sudo systemctl daemon-reload
      sudo systemctl reset-failed
      sudo gitlab-ctl uninstall
    • To remove all data:

      sudo gitlab-ctl cleanse && sudo rm -r /opt/gitlab
  3. Uninstall the package (replace with gitlab-ce if you have GitLab FOSS installed):

    # Debian/Ubuntu
    sudo apt remove gitlab-ee
    # AlmaLinux/RHEL/Oracle Linux/Amazon Linux 2023
    sudo dnf remove gitlab-ee
    # OpenSUSE Leap/SLES
    sudo zypper remove gitlab-ee
    # Amazon Linux 2
    sudo yum remove gitlab-ee