🧠 If you are using an image that lacks ca-certificates or gnupg2
Some images don't come bundled with the ca-certificates and gnupg2 packages out of the box. If you are using such an image, you first need to install these packages with the following command:
⚠️ If you are behind a firewall or proxy
There have been reports of users being unable to download the key from Ubuntu's keyserver using the apt-key command due to firewalls or proxies blocking their requests. If you experience this issue, you may try this alternative approach instead:
Then confirm that the key with the above ID is shown in the output of sudo apt-key list.
Using dnf or yum on older versions:
CentOS versions older than 8 don't support the PGP V4 signature we use, so you'll need to disable the verification by installing k6 with:
⚠️ Note about Bintray
The Bintray k6 repositories will stop working after May 1st, 2021 and you should switch to our own repositories following the instructions above.
On Debian/Ubuntu you can remove the Bintray repository with:
And on Fedora/CentOS with:
If you use the Chocolatey package manager you can install the unofficial k6 package with:
Otherwise you can manually download and install the latest official .msi package.
Download a prebuilt binary from our Releases page, and place it in your PATH to run k6 from any location.