You are located in service: Software Engineering Services (GitLab)

GitLab Runner

GitLab Runner


To use Continues Integration (CI) und Continues Delivery (CD) with GitLab, you need a GitLab Runner. This should ideally run on a server on the Internet so that it is always available. Alternatively you can install a GitLab Runner locally.


Installation from the official GitLab repositories under Linux
  1. Add GitLab’s official repository:

    # For Debian/Ubuntu/Mint curl -L | sudo bash # For RHEL/CentOS/Fedora curl -L | sudo bash


    Debian users should use APT pinning

    Since Debian Stretch, Debian maintainers added their native package with the same name as is used by our package, and by default the official repositories will have a higher priority.

    If you want to use our package you should manually set the source of the package. The best would be to add the pinning configuration file. Thanks to this every next update of the Runner’s package - whether it will be done manually or automatically - will be done using the same source:

    cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gitlab-runner.pref Explanation: Prefer GitLab provided packages over the Debian native ones Package: gitlab-runner Pin: origin Pin-Priority: 1001 EOF

  2. Install the latest version of GitLab Runner, or skip to the next step to install a specific version:

    # For Debian/Ubuntu/Mint sudo apt-get install gitlab-runner # For RHEL/CentOS/Fedora sudo yum install gitlab-runner

  3. To install a specific version of GitLab Runner:

    # for DEB based systems apt-cache madison gitlab-runner sudo apt-get install gitlab-runner=10.0.0 # for RPM based systems yum list gitlab-runner --showduplicates | sort -r sudo yum install gitlab-runner-10.0.0-1

  4. Register the runner

Update GitLab Runner to latest Version under Linux

Simply execute to install latest version:

# For Debian/Ubuntu/Mint sudo apt-get update sudo apt-get install gitlab-runner # For RHEL/CentOS/Fedora sudo yum update sudo yum install gitlab-runner

last changed on 04/28/2023

How did this content help you?

Creative Commons Lizenzvertrag
This work is licensed under a Creative Commons Attribution - Share Alike 3.0 Germany License