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 under Debian 7 ("wheezy") do the following as root:

  1. apt-get install apt-transport-https
  2. curl | apt-key add -
  3. echo "deb wheezy varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
  4. apt-get update
  5. apt-get install varnish

For Debian 8 ("jessie") replace wheezy above with jessie.

Ubuntu LTS users please follow these instructions.