gitlab.com/jfprevost/gitlab-runner-notlscheck@v11.11.4+incompatible/docs/install/linux-repository.md (about) 1 --- 2 last_updated: 2017-10-12 3 --- 4 5 # Install GitLab Runner using the official GitLab repositories 6 7 NOTE: **Note:** 8 Any version that is marked as **_Deprecated_** is scheduled to be removed in 9 GitLab 12.0. Please follow 10 <https://gitlab.com/gitlab-org/gitlab-runner/issues/3473> for more details. 11 12 We provide packages for the currently supported versions of Debian, Ubuntu, Mint, RHEL, Fedora, and CentOS. 13 14 | Distribution | Version | End of Life date | 15 |--------------|----------------------------|-----------------------| 16 | Debian | buster | | 17 | Debian | stretch | approx. 2022 | 18 | Debian | jessie | June 2020 | 19 | Debian | wheezy **_(Deprecated)_** | May 2018 | 20 | Ubuntu | bionic | April 2023 | 21 | Ubuntu | artful **_(Deprecated)_** | July 2018 | 22 | Ubuntu | xenial | April 2021 | 23 | Ubuntu | trusty **_(Deprecated)_** | April 2019 | 24 | Mint | sonya | approx. 2021 | 25 | Mint | serena | approx. 2021 | 26 | Mint | sarah | approx. 2021 | 27 | Mint | rosa **_(Deprecated)_** | April 2019 | 28 | Mint | rafaela **_(Deprecated)_** | April 2019 | 29 | Mint | rebecca **_(Deprecated)_** | April 2019 | 30 | Mint | qiana **_(Deprecated)_** | April 2019 | 31 | RHEL/CentOS | 7 | June 2024 | 32 | RHEL/CentOS | 6 | November 2020 | 33 | Fedora | 29 | approx. November 2019 | 34 | Fedora | 28 **_(Deprecated)_** | approx. May 2019 | 35 | Fedora | 27 **_(Deprecated)_** | approx. November 2018 | 36 | Fedora | 26 **_(Deprecated)_** | approx. June 2018 | 37 38 ## Prerequisites 39 40 If you want to use the [Docker executor], make sure to install Docker before 41 using the Runner. [Read how to install Docker for your distribution](https://docs.docker.com/engine/installation/). 42 43 ## Installing the Runner 44 45 CAUTION: **Important:** 46 If you are using or upgrading from a version prior to GitLab Runner 10, read how 47 to [upgrade to the new version](#upgrading-to-gitlab-runner-10). If you want 48 to install a version prior to GitLab Runner 10, [visit the old docs](old.md). 49 50 To install the Runner: 51 52 1. Add GitLab's official repository: 53 54 ```bash 55 # For Debian/Ubuntu/Mint 56 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash 57 58 # For RHEL/CentOS/Fedora 59 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash 60 ``` 61 62 >**Note:** 63 _Debian users should use APT pinning_ 64 > 65 Since Debian Stretch, Debian maintainers added their native package 66 with the same name as is used by our package, and by default the official 67 repositories will have a higher priority. 68 > 69 If you want to use our package you should manually set the source of 70 the package. The best would be to add the pinning configuration file. 71 Thanks to this every next update of the Runner's package - whether it will 72 be done manually or automatically - will be done using the same source: 73 > 74 ```bash 75 cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gitlab-runner.pref 76 Explanation: Prefer GitLab provided packages over the Debian native ones 77 Package: gitlab-runner 78 Pin: origin packages.gitlab.com 79 Pin-Priority: 1001 80 EOF 81 ``` 82 83 1. Install the latest version of GitLab Runner, or skip to the next step to 84 install a specific version: 85 86 ```bash 87 # For Debian/Ubuntu/Mint 88 sudo apt-get install gitlab-runner 89 90 # For RHEL/CentOS/Fedora 91 sudo yum install gitlab-runner 92 ``` 93 94 1. To install a specific version of GitLab Runner: 95 96 ```bash 97 # for DEB based systems 98 apt-cache madison gitlab-runner 99 sudo apt-get install gitlab-runner=10.0.0 100 101 # for RPM based systems 102 yum list gitlab-runner --showduplicates | sort -r 103 sudo yum install gitlab-runner-10.0.0-1 104 ``` 105 106 1. [Register the Runner](../register/index.md) 107 108 After completing the step above, the Runner should be started already being 109 ready to be used by your projects! 110 111 Make sure that you read the [FAQ](../faq/README.md) section which describes 112 some of the most common problems with GitLab Runner. 113 114 ## Updating the Runner 115 116 Simply execute to install latest version: 117 118 ```bash 119 # For Debian/Ubuntu/Mint 120 sudo apt-get update 121 sudo apt-get install gitlab-runner 122 123 # For RHEL/CentOS/Fedora 124 sudo yum update 125 sudo yum install gitlab-runner 126 ``` 127 ## Manually download packages 128 129 You can manually download the packages from the following URL: 130 <https://packages.gitlab.com/runner/gitlab-runner> 131 132 ## Upgrading to GitLab Runner 10 133 134 To upgrade GitLab Runner from a version prior to 10.0: 135 136 1. Remove the old repository: 137 138 ``` 139 # For Debian/Ubuntu/Mint 140 sudo rm /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list 141 142 # For RHEL/CentOS/Fedora 143 sudo rm /etc/yum.repos.d/runner_gitlab-ci-multi-runner.repo 144 ``` 145 146 1. Follow the same steps when [installing the Runner](#installing-the-runner), 147 **without registering it** and using the new repository. 148 149 1. For RHEL/CentOS/Fedora, run: 150 151 ``` 152 sudo /usr/share/gitlab-runner/post-install 153 ``` 154 155 CAUTION: **Important:** If you don't run the above command, you will be left 156 with no service file. Follow [issue #2786](https://gitlab.com/gitlab-org/gitlab-runner/issues/2786) 157 for more information. 158 159 [docker executor]: ../executors/docker.md