Installation on Ubuntu

Varnish is distributed in the Ubuntu package repositories, but the version there might be out of date, and we generally recommend using the packages provided by Please be advised that we only provide packages for Ubuntu's LTS releases, not all the intermediate releases. Note that the packages might still work fine on newer releases.

To use the repository, do the following

  1. curl | sudo apt-key add -
  2. echo "deb precise varnish-3.0" | sudo tee -a /etc/apt/sources.list
  3. sudo apt-get update
  4. sudo 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. I