Skip to content

Installing wrk on Linux

Danila Vershinin edited this page Jun 15, 2019 · 9 revisions

Prebuilt Packages

wrk is easy to install from packages, available on some platforms.

Install in CentOS / RHEL 6

yum install https://extras.getpagespeed.com/release-el6-latest.rpm
yum install wrk

Install in CentOS / RHEL 7

yum install https://extras.getpagespeed.com/release-el7-latest.rpm
yum install wrk

Install in Fedora 28+

dnf copr enable getpagespeed/wrk
dnf install wrk

Compilation

You may want to compile wrk if prebuilt packages are not available for your platform.

wrk needs openssl dev package and gcc/dev stack.

What follows is brief instructions on how to install wrk on Linux.

Ubuntu/Debian (clean box)

sudo apt-get install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git wrk
cd wrk
make
# move the executable to somewhere in your PATH, ex:
sudo cp wrk /usr/local/bin

The above installs build tools, open ssl dev libs (including headers), and git. Then uses git to download wrk and builds it from that.

CentOS / RedHat / Fedora

sudo yum groupinstall 'Development Tools'
sudo yum install -y openssl-devel git 
git clone https://github.com/wg/wrk.git wrk
cd wrk
make
# move the executable to somewhere in your PATH
sudo cp wrk /somewhere/in/your/PATH

Installs the build tools, open ssl dev libs (including headers), and git. Then uses git to download wrk and build.

You can’t perform that action at this time.