41

How can I get the installed Varnish cache version string from the command line?

2 Answers 2

70

According to the varnish documentation, it's varnishd -V

3
  • 3
    Thanks! In case anyone is as brilliant as me, make sure you're using a capital "V". I couldn't figure it out because I was using a lowercase one. [bonk!] Apr 10, 2013 at 19:43
  • 2
    I need to find varnishd first, so I used locate. It was located at /usr/sbin/varnishd . Aug 20, 2014 at 13:36
  • 1
    You might also need to run it as root or with sudo
    – wranvaud
    Nov 24, 2015 at 20:13
3

varnishd -V

This will return you something like:

varnishd (varnish-4.1.5 revision 2c82b1c)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS
1
  • 3
    Option -V is already the accepted answer.
    – RalfFriedl
    Jul 16, 2019 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.