How To Install node-node-redis on Debian 9

In this tutorial we learn how to install node-node-redis on Debian 9. node-node-redis is Redis client implementation for Node.js

Introduction

In this tutorial we learn how to install node-node-redis on Debian 9.

What is node-node-redis

node-node-redis is:

Redis is a networked, in-memory, key-value data store with optional durability. As the durability of data is not needed, the in-memory nature of Redis allows it to perform extremely well compared to database systems that write every change to disk before considering a transaction committed.

This module provides Redis client support for Node.js.

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

Install node-node-redis Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install node-node-redis

Install node-node-redis Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install node-node-redis

Install node-node-redis 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 node-node-redis using aptitude by running the following command:

sudo aptitude -y install node-node-redis

How To Uninstall node-node-redis on Debian 9

To uninstall only the node-node-redis package we can use the following command:

sudo apt-get remove node-node-redis

Uninstall node-node-redis And Its Dependencies

To uninstall node-node-redis and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove node-node-redis

Remove node-node-redis Configurations and Data

To remove node-node-redis configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge node-node-redis

Remove node-node-redis configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge node-node-redis

Dependencies

node-node-redis have the following dependencies:

References

Summary

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