Setup

Whatweb install: step-by-step on Linux and macOS

Install with apt, from source with Ruby and Bundler, or on macOS – plus how to confirm it works and fix the usual errors.

Published 4 min readBy the WhatWeb.org team
Cover image for Whatweb install: step-by-step on Linux and macOS

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 update
sudo apt install whatweb
whatweb --version

apt 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.4

Step 3 – install the gems.

gem install bundler
bundle install

Step 4 – run it.

./whatweb --version

You 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:

  1. Install Homebrew if you haven't already.
  2. Run brew install ruby and follow Homebrew's note about adding its Ruby to your PATH (or use rbenv, which the wiki recommends).
  3. Open a new terminal and check ruby -v shows the Homebrew version.
  4. Unpack the WhatWeb archive, then run gem install bundler, bundle install and ./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 copy plugins-disabled/charset.rb to my-plugins/. It slows scans noticeably, so only enable it if you need it.

First scan after installing

whatweb example.com

You 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

MessageWhat to do
bundle: command not foundRun gem install bundler (prefix with sudo if your Ruby is system-wide).
cannot load such fileYou skipped bundle install, or ran it in another folder.
Native extension failed to buildInstall the Ruby development package (ruby-dev) and a compiler (build-essential).
Permission denied writing gemsUse 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

Download WhatWeb