varnishtest command not found

In this troubleshooting guide we learn how to fix varnishtest command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

varnishtest: command not found

or when using sudo you get the following error message

sudo: varnishtest: command not found

Solutions to varnishtest: command not found

How To Fix varnishtest: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu varnishtest is provided by varnish package.

varnish is:

Varnish Cache is a state of the art web accelerator written with performance and flexibility in mind.

Varnish Cache stores web pages in memory so web servers don’t have to create the same web page over and over again. Varnish serves pages much faster than any application server; giving the website a significant speed up.

Some of the features include:

  • A modern design
  • VCL - a very flexible configuration language
  • Load balancing with health checking of backends
  • Partial support for ESI - Edge Side Includes
  • URL rewriting
  • Graceful handling of “dead” backends

To fix this problem, we can install more using the command below.

sudo apt-get -y install varnish

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install varnish.

sudo apt -y install varnish

Or if you have aptitude installed you can use the following command.

sudo aptitude install varnish

Summary

In this tutorial we learn how to fix varnishtest command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.