How To Install libdatrie on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install libdatrie on Rocky Linux 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

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

Install libdatrie on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libdatrie

Install libdatrie on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libdatrie

How To Uninstall libdatrie on Rocky Linux 8

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

sudo dnf remove libdatrie

libdatrie Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/58
/usr/lib/.build-id/58/700f2d31659a02915f1eadd9103e32723d24fa
/usr/lib64/libdatrie.so.1
/usr/lib64/libdatrie.so.1.3.2
/usr/share/licenses/libdatrie
/usr/share/licenses/libdatrie/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/375d1517ac3f531bf838d09fe599c7049933bc
/usr/lib/libdatrie.so.1
/usr/lib/libdatrie.so.1.3.2
/usr/share/licenses/libdatrie
/usr/share/licenses/libdatrie/COPYING

References

Summary

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