How To Install python-marisa on Ubuntu 18.04

In this tutorial we learn how to install python-marisa on Ubuntu 18.04. python-marisa is Python bindings for MARISA

Introduction

In this tutorial we learn how to install python-marisa on Ubuntu 18.04.

What is python-marisa

python-marisa is:

Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure.

This package contains Python bindings for MARISA.

There are three methods to install python-marisa 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 python-marisa Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-marisa

Install python-marisa Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-marisa

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

sudo aptitude -y install python-marisa

How To Uninstall python-marisa on Ubuntu 18.04

To uninstall only the python-marisa package we can use the following command:

sudo apt-get remove python-marisa

Uninstall python-marisa And Its Dependencies

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

sudo apt-get -y autoremove python-marisa

Remove python-marisa Configurations and Data

To remove python-marisa configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-marisa

Remove python-marisa configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-marisa

References

Summary

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