Introduction
Background & Getting Assistance
Cloudflare offers binary packages for some of its tools and features to help you stay up-to-date with the latest fixes and improvements. Both yum and apt repositories are available for popular distributions of GNU/Linux. Package repository metadata and RPM packages are signed with GPG. You should import our key using the method suggested for your distribution below. The public Cloudflare GPG package signing key can be downloaded here.
Please contact support if you encounter any issues or have any questions.
Supported Distributions
We support modern versions of the following GNU/Linux distributions:
Updating repository GPG key
The Cloudflare public packaging GPG key was updated in March of 2015 and will need to be updated if you are using the old key with an ID of 8e5f9a5d. Follow the intructions below to retrieve and install the new key.
apt-based OS
Install the new key:
$ curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -
Remove the old key:
$ sudo apt-key del 8e5f9a5d
yum-based OS
Install the new key:
$ sudo rpm --import https://pkg.cloudflare.com/pubkey.gpg
Remove the old key:
$ sudo rpm -e gpg-pubkey-8e5f9a5d-*
Ubuntu
Usage
Add the repository (replace <RELEASE> with the Ubuntu release name):
$ echo 'deb http://pkg.cloudflare.com/ <RELEASE> main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
For example:
$ echo 'deb http://pkg.cloudflare.com/ xenial main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
Import GPG key:
$ curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -
Update apt cache:
$ sudo apt-get update
Supported Versions
-
Focal (20.04)
-
Xenial (16.04)
-
Wily (15.10)
-
Vivid (15.04)
-
Utopic (14.10)
-
Trusty (14.04)
-
Precise (12.04)
Debian
Usage
Add the repository (replace <RELEASE> with the Debian release name):
$ echo 'deb http://pkg.cloudflare.com/ <RELEASE> main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
For example:
$ echo 'deb http://pkg.cloudflare.com/ jessie main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
Import GPG key:
$ curl -C - https://pkg.cloudflare.com/pubkey.gpg | sudo apt-key add -
Update apt cache:
$ sudo apt-get update
Supported Versions
-
Buster (10)
-
Stretch (9)
-
Jessie (8)
-
Wheezy (7)
-
Squeeze (6)
Red Hat Enterprise Linux & CentOS
Usage
Install RPM to add repository (replace <VERSION> with the release version number):
$ sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el<VERSION>.rpm
For example:
$ sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el7.rpm
$ sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el6.rpm
Supported Versions
-
8.x
-
7.x
-
6.x