Installing Varnish on Ubuntu Hardy

Tuesday, September 14. 2010

This is a quick and dirty rundown on how to install Varnish 2.1.x on Ubuntu Hardy (8.04 LTS).

Get sources setup

Add the repository to /etc/apt/sources.list:

deb hardy Varnish-2.1 

Import the key for the new repository:

gpg --keyserver --recv-keys 60E7C096C4DEFFEB
gpg --armor --export 60E7C096C4DEFFEB | apt-key add -


Update sources list and install varnish:

apt-get update
apt-get install varnish

Files of importance:



[email protected]:~# varnishd -V
varnishd (varnish-2.1.2 SVN )
Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS

Further reading

I recommend a mix of the following websites/links:


That's all!