Tuesday, January 18, 2011

Installing Varnish Cache 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.

To use the varnish-cache.org repository, do the following

1.curl http://repo.varnish-cache.org/debian/GPG-key.txt apt-key add -
2.echo "deb http://repo.varnish-cache.org/debian/ $(lsb_release -s -c) varnish-2.1" >> /etc/apt/sources.list
3.apt-get update
4.apt-get install varnish