Installation on RedHat

Installing Varnish Cache is as simple as enabling our package repository and installing the packages. Varnish Cache 4.0 is supported on EL6 (beta builds on EL7), and Varnish Cache 3.0 is supported on EL5 and EL6.

Varnish 4.0:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.0.el6.rpm
  2. yum install varnish

Varnish 3.0:

If you are on RHEL 5 or a compatible distribution, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el5.rpm
  2. yum install varnish

For RHEL 6 and compatible distributions, use:

  1. rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el6.rpm
  2. yum install varnish

The --no-signature is only needed on initial installation, since the Varnish GPG key is not yet in the yum keyring.

Varnish is also distributed in the EPEL (Extra Packages for Enterprise Linux) package repositories. However, while EPEL allows new versions to be distributed, it does not allow for backwards-incompatible changes. Therefore, new major versions will not hit EPEL and it is not necessarily up to date.