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:
$ sudo curl https://pkg.cloudflare.com/cloudflare-main.gpg -o /usr/share/keyrings/cloudflare-main.gpg
And ensure you have this text in your cloudflare-main.list file (see other examples on this page for the full file):
[signed-by=/usr/share/keyrings/cloudflare-main.gpg]
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 [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/ <RELEASE> main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
For example:
$ echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/ focal main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
Import GPG key:
$ sudo curl https://pkg.cloudflare.com/cloudflare-main.gpg -o /usr/share/keyrings/cloudflare-main.gpg
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 [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/ <RELEASE> main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
For example:
$ echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/ buster main' |
sudo tee /etc/apt/sources.list.d/cloudflare-main.list
Import GPG key:
$ sudo curl https://pkg.cloudflare.com/cloudflare-main.gpg -o /usr/share/keyrings/cloudflare-main.gpg
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
-
7.x
-
6.x