Install Varnish 4 – CentOS 7.2
Installing Varnish on CentOS 7.2 is pretty straight forward, start off by adding the epel-release…
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!