Install Varnish 5.1.2 – CentOS 7.3

If you’re here, you know why you want Varnish-Cache, if you still aren’t sure, read this.

The people behind Varnish-Cache have changed things up a bit with regards to installation, The repo is now being managed by Package Cloud.

Start off by adding the repo to your server, add the file varnish5.repo to the location: /etc/yum.repos.d

Add the following to it:

Now all you need to do is run:

Note: If you have varnish previously installed you will need to backup it’s configuration, remove it and then install the new one.

At the time of writing this I received a GPG Mismatch error, to bypass this, modify the install statement like below:

That’s it, you’re done!