How To Install webdis on Debian 10

Learn how to install webdis on Debian 10 with this tutorial. webdis is simple web server providing an HTTP interface to Redis

Introduction

In this tutorial we learn how to install webdis on Debian 10.

What is webdis

webdis is:

Webdis is a simple web server providing HTTP interface to Redis. Some features include:

  • Support for GET and POST requests.
  • JSON output by default, optional JSONP parameter (?jsonp=myFunction).
  • Raw Redis 2.0 protocol output with .raw suffix
  • HTTP 1.1 pipelining (50,000 http requests per second on a desktop Linux machine.)
  • Restricted commands by IP range (CIDR subnet + mask) or HTTP Basic Auth, returning 403 errors.
  • Possible Redis authentication in the config file.
  • Pub/Sub using Transfer-Encoding: chunked, works with JSONP as well. Webdis can be used as a Comet server.
  • Custom Content-Type using a pre-defined file extension, or with ?type=some/thing.
  • URL-encoded parameters for binary data or slashes.
  • Logs, with a configurable verbosity.
  • Cross-origin XHR, if compiled with libevent2 (for OPTIONS support).
  • File upload with PUT.
  • With the JSON output, the return value of INFO is parsed and transformed into an object.

There are three methods to install webdis on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install webdis Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install webdis using apt-get by running the following command:

sudo apt-get -y install webdis

Install webdis Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install webdis using apt by running the following command:

sudo apt -y install webdis

Install webdis Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install webdis using aptitude by running the following command:

sudo aptitude -y install webdis

How To Uninstall webdis on Debian 10

To uninstall only the webdis package we can use the following command:

sudo apt-get remove webdis

Uninstall webdis And Its Dependencies

To uninstall webdis and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove webdis

Remove webdis Configurations and Data

To remove webdis configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge webdis

Remove webdis configuration, data, and all of its dependencies

We can use the following command to remove webdis configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge webdis

Dependencies

webdis have the following dependencies:

References

Summary

In this tutorial we learn how to install webdis package on Debian 10 using different package management tools: apt, apt-get and aptitude.