How To Install marisa on CentOS 7

In this tutorial we learn how to install marisa on CentOS 7. marisa is Static and spece-efficient trie data structure library

Introduction

In this tutorial we learn how to install marisa on CentOS 7.

What is marisa

Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure. And libmarisa is a C++ library to provide an implementation of MARISA. Also, the package of libmarisa contains a set of command line tools for building and operating a MARISA-based dictionary. A MARISA-based dictionary supports not only lookup but also reverse lookup, common prefix search and predictive search. Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure. And libmarisa is a C++ library to provide an implementation of MARISA. Also, the package of libmarisa contains a set of command line tools for building and operating a MARISA-based dictionary. A MARISA-based dictionary supports not only lookup but also reverse lookup, common prefix search and predictive search.

We can use yum or dnf to install marisa on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install marisa.

Install marisa on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install marisa using yum by running the following command:

sudo yum -y install marisa

Install marisa on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install marisa using dnf by running the following command:

sudo dnf -y install marisa

How To Uninstall marisa on CentOS 7

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

sudo dnf remove marisa

References

Summary

In this tutorial we learn how to install marisa on CentOS 7 using yum and dnf.