How To Install libdatrie on CentOS 8

In this tutorial we learn how to install libdatrie on CentOS 8. libdatrie is Implementation of Double-Array structure for representing trie

Introduction

In this tutorial we learn how to install libdatrie on CentOS 8.

What is libdatrie

datrie is an implementation of double-array structure for representing trie. Trie is a kind of digital search tree, an efficient indexing method with O(1) time complexity for searching. Comparably as efficient as hashing, trie also provides flexibility on incremental matching and key spelling manipulation. This makes it ideal for lexical analyzers, as well as spelling dictionaries. Details of the implementation datrie is an implementation of double-array structure for representing trie. Trie is a kind of digital search tree, an efficient indexing method with O(1) time complexity for searching. Comparably as efficient as hashing, trie also provides flexibility on incremental matching and key spelling manipulation. This makes it ideal for lexical analyzers, as well as spelling dictionaries. Details of the implementation

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

Install libdatrie on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libdatrie

Install libdatrie on CentOS 8 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 libdatrie using dnf by running the following command:

sudo dnf -y install libdatrie

How To Uninstall libdatrie on CentOS 8

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

sudo dnf remove libdatrie

References

Summary

In this tutorial we learn how to install libdatrie on CentOS 8 using yum and dnf.