What package includes AB the Apache Server Benchmarking Tool in Ubuntu

LinuxApacheUbuntu

Linux Problem Overview


I'm trying to find ab - Apache HTTP server benchmarking tool for Ubuntu, I'm hoping there's a package I can install for it. I decided I need to do some simple load testing on my applications.

Linux Solutions


Solution 1 - Linux

% sudo apt-get install apache2-utils

The command-not-found package in Ubuntu provides some slick functionality where if you type a command that can't be resolved to an executable (or bash function or whatever) it will query your apt sources and find a package that contains the binary you tried to execute. So, in this case, I typed ab at the command prompt:


% ab
The program 'ab' is currently not installed.  You can install it by typing:
sudo apt-get install apache2-utils
bash: ab: command not found


Solution 2 - Linux

Another way to search for missing files, e.g. if you use zsh, want to disable command-not-found (slows things down when you misstype commandnames), or are looking for a file that is not an executable:

$ sudo aptitude install apt-file
$ sudo apt-file update
$ apt-file search bin/ab

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionreconbotView Question on Stackoverflow
Solution 1 - LinuxBrian PhillipsView Answer on Stackoverflow
Solution 2 - Linux0x89View Answer on Stackoverflow