How To Install Judy on CentOS 7

In this tutorial we learn how to install Judy on CentOS 7. Judy is General purpose dynamic array

Introduction

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

What is Judy

Judy is a C library that provides a state-of-the-art core technology that implements a sparse dynamic array. Judy arrays are declared simply with a null pointer. A Judy array consumes memory only when it is populated, yet can grow to take advantage of all available memory if desired. Judy’s key benefits are scalability, high performance, and memory efficiency. A Judy array is extensible and can scale up to a very large number of elements, bounded only by machine memory. Since Judy is designed as an unbounded array, the size of a Judy array is not pre-allocated but grows and shrinks dynamically with the array population.

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

Install Judy on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install Judy

Install Judy 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 Judy using dnf by running the following command:

sudo dnf -y install Judy

How To Uninstall Judy on CentOS 7

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

sudo dnf remove Judy

References

Summary

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