Friday, March 18, 2022

[SOLVED] how to install gitlab-runner on Debian 11 using package manager

Issue

I was trying to install GitLab-runner using apt package manager.

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

but there is no GitLab runner package for debian11 right now.


Solution

for now there is no GitLab-runner package on Debian 11 so you should use Debian 10 packages to install from package manager:

  1. curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
  2. sudo vim /etc/apt/sources.list.d/runner_gitlab-runner.list
  3. replace content of this file with this deb https://packages.gitlab.com/runner/gitlab-runner/debian/ buster main deb-src https://packages.gitlab.com/runner/gitlab-runner/debian/ buster main
  4. sudo apt update
  5. sudo apt install gitlab-runner


Answered By - javidasd
Answer Checked By - Mary Flores (WPSolving Volunteer)