Installation on Debian

Varnish is distributed in the Debian package repositories, but the version there might be out of date, and we generally recommend using the packages provided by or packages from

To use the repository and install varnish, do the following:

  1. curl | apt-key add -
  2. echo "deb wheezy varnish-3.0" >> /etc/apt/sources.list
  3. apt-get update
  4. apt-get install varnish

If you want to install the older 2.1 version, replace varnish-3.0 with varnish-2.1 in the command above. If you are on squeeze, replace wheezy with squeeze.