How To Install redis-redisearch-doc on Ubuntu 18.04

In this tutorial we learn how to install redis-redisearch-doc on Ubuntu 18.04. redis-redisearch-doc is Full-text and secondary search index engine module for Redis (documentation)

Introduction

In this tutorial we learn how to install redis-redisearch-doc on Ubuntu 18.04.

What is redis-redisearch-doc

redis-redisearch-doc is:

Redisearch implements a search engine on top of Redis but unlike other search libraries it does not use internal data structures such as sorted sets.

This also enables more advanced features such as exact phrase matching and numeric filtering for text queries that are not possible or efficient with traditional Redis search approaches.

This package contains the documentation for redisearch.

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

Install redis-redisearch-doc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install redis-redisearch-doc

Install redis-redisearch-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install redis-redisearch-doc

Install redis-redisearch-doc 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install redis-redisearch-doc

How To Uninstall redis-redisearch-doc on Ubuntu 18.04

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

sudo apt-get remove redis-redisearch-doc

Uninstall redis-redisearch-doc And Its Dependencies

To uninstall redis-redisearch-doc and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove redis-redisearch-doc

Remove redis-redisearch-doc Configurations and Data

To remove redis-redisearch-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge redis-redisearch-doc

Remove redis-redisearch-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge redis-redisearch-doc

References

Summary

In this tutorial we learn how to install redis-redisearch-doc package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.