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 varnish-cache.org. Please be advised that we only provide packages for Ubuntu's LTS releases, not all the intermediate releases. These packages might still work fine on newer releases.
The only supported architecture is amd64.
To use the varnish-cache.org repository and install Varnish under Ubuntu 12.04 (Precise Pangolin) do the following as root:
apt-get install apt-transport-https
curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
apt-get install varnish
For Ubuntu 14.04 (Trusty Tahr) replace precise above with trusty.
Debian users please follow these instructions.