How To Install Ab On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Ab On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

ab

Apache Benchmarking tool. The simplest tool to perform a load testing.

Maintainer: Debian Apache Maintainers



Section: httpd

Install ab

  • Debian apt-get install apache2-utils Click to copy
  • Ubuntu apt-get install apache2-utils Click to copy
  • Alpine OS apk add apache2-utils Click to copy
  • Arch Linux pacman -S apache Click to copy
  • Kali Linux apt-get install apache2-utils Click to copy
  • CentOS yum install httpd-tools Click to copy
  • Fedora dnf install httpd-tools Click to copy
  • Raspbian apt-get install apache2-utils Click to copy

Apache Benchmarking tool. The simplest tool to perform a load testing.

How to use ab?

Below are few example commands for ab that you can use in the terminal.

Execute 100 HTTP GET requests to given URL:
ab -n 100 urlClick to copy
Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
ab -n 100 -c 10 urlClick to copy
Use keep alive:
ab -k urlClick to copy
Set the maximum number of seconds to spend for benchmarking:
ab -t 60 urlClick to copy
Installation of latest ab command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.