
Installing WhatWeb comes down to one idea: get a working Ruby, then let Bundler fetch the gems. On Debian-based systems apt does all of that in one command. Everywhere else it takes about five minutes. Pick your system below.
Option 1: apt (Kali, Debian, Ubuntu)
This is the quickest route and the one we recommend if it's available to you.
sudo apt updatesudo apt install whatwebwhatweb --versionapt installs Ruby and every dependency automatically. If you're on Kali, WhatWeb may already be there – see the Whatweb Kali guide. The packaged version depends on your distribution release; if it's older than you need, use Option 2.
Option 2: from source on any Linux
Step 1 – install Ruby. Use your package manager. On Debian or Ubuntu that's sudo apt install ruby ruby-dev build-essential; on Fedora, sudo dnf install ruby ruby-devel rubygems. The -dev/-devel packages let gems with native code compile.
Step 2 – download and unpack WhatWeb. Use the button in our download section, then:
unzip WhatWeb-0.6.4.zip && cd WhatWeb-0.6.4Step 3 – install the gems.
gem install bundlerbundle installStep 4 – run it.
./whatweb --versionYou can run WhatWeb from this folder indefinitely. If you'd like to type whatweb from anywhere, install it system-wide with sudo make install.
Option 3: macOS
The WhatWeb wiki warns that the Ruby bundled with older macOS versions can't build some gems, such as json. The fix is to use a separate Ruby:
- Install Homebrew if you haven't already.
- Run
brew install rubyand follow Homebrew's note about adding its Ruby to your PATH (or use rbenv, which the wiki recommends). - Open a new terminal and check
ruby -vshows the Homebrew version. - Unpack the WhatWeb archive, then run
gem install bundler,bundle installand./whatweb --version.
The Makefile installs on macOS too, so sudo make install works if you want a global command.
Optional extras
Two features need extra gems, installed with Bundler groups:
- MongoDB logging –
bundle install --with mongo - Character-set detection –
bundle install --with rchardet, then copyplugins-disabled/charset.rbtomy-plugins/. It slows scans noticeably, so only enable it if you need it.
First scan after installing
whatweb example.comYou should see a single line listing the status code and the technologies found. Add -v for details, or read our WhatWeb Scan guide for aggression levels and output files.
Fixing common install errors
| Message | What to do |
|---|---|
bundle: command not found | Run gem install bundler (prefix with sudo if your Ruby is system-wide). |
cannot load such file | You skipped bundle install, or ran it in another folder. |
| Native extension failed to build | Install the Ruby development package (ruby-dev) and a compiler (build-essential). |
| Permission denied writing gems | Use a user-level Ruby (rbenv) or run bundle config set --local path 'vendor/bundle' before bundle install. |
Quick answers
Do I need root to use WhatWeb?
No. Only installing with apt or make install needs sudo.
How do I uninstall it?
With apt: sudo apt remove whatweb. From source: delete the folder.
Can I install it on Windows?
Yes, through WSL – see the WhatWeb Windows guide.
Get WhatWeb v0.6.4
Official source archive from GitHub · free under GPLv2


