Varnish Installation
Foreword
The following article describes how to install Varnish and the additional package Varnish Modules for Debian.
Prerequisites
- Debian 12 Server
Install Varnish Debian/Ubuntu Repository
Varnish provides an installation script to install the correct repository:
curl -Ls https://packages.varnish-software.com/varnish/bootstrap-deb.sh | sh Install Varnish
Use specific version branch
If a specific version branch such as 8.0 is to be used, the version must be fixed via APT pinning:
nano /etc/apt/preferences.d/varnish Package: varnish
Pin: version 8.0.*
Pin priority: 1001 Varnish can then be installed as follows:
apt install -y varnish Install Varnish Modules
Use specific version branch
If a specific version branch is already used for Varnish, this must also be fixed for Varnish modules via APT pinning:
nano /etc/apt/preferences.d/varnish-modules Package: varnish-modules
Pin: version 8.0.*
Pin priority: 1001 The Varnish-Modules package can then be installed as follows:
apt install -y varnish-modules Was this page helpful?