How To Install marisa on CentOS 8
Introduction
In this tutorial we learn how to install marisa
on CentOS 8.
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. marisa 0.2.4 36.el8 x86_64 86 k marisa-0.2.4-36.el8.src.rpm appstream Static and spece-efficient trie data structure library https BSD or LGPLv2+ 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 8. In this tutorial we discuss both methods but you only need to choose one of method to install marisa.
Install marisa on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install marisa
using dnf
by running the following command:
sudo dnf -y install marisa
Install marisa on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install marisa
using yum
by running the following command:
sudo yum -y install marisa
How To Uninstall marisa on CentOS 8
To uninstall only the marisa
package we can use the following command:
sudo dnf remove marisa
marisa Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/5b6fc36e7c431267a15b62364fd022a1f88d4c
/usr/lib64/libmarisa.so.0
/usr/lib64/libmarisa.so.0.0.0
/usr/share/doc/marisa
/usr/share/doc/marisa/AUTHORS
/usr/share/doc/marisa/README
/usr/share/doc/marisa/readme.en.html
/usr/share/doc/marisa/readme.ja.html
/usr/share/doc/marisa/style.css
/usr/share/licenses/marisa
/usr/share/licenses/marisa/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/27f78835fb7f4ccfb18a547ed4e7824d50420f
/usr/lib/libmarisa.so.0
/usr/lib/libmarisa.so.0.0.0
/usr/share/doc/marisa
/usr/share/doc/marisa/AUTHORS
/usr/share/doc/marisa/README
/usr/share/doc/marisa/readme.en.html
/usr/share/doc/marisa/readme.ja.html
/usr/share/doc/marisa/style.css
/usr/share/licenses/marisa
/usr/share/licenses/marisa/COPYING
References
- [marisa website](https://code.google.com/p/marisa-trie https://code.google.com/p/marisa-trie)
Summary
In this tutorial we learn how to install marisa
on CentOS 8 using yum and dnf.