How To Install libjudy-dev on Ubuntu 20.04

In this tutorial we learn how to install libjudy-dev on Ubuntu 20.04. libjudy-dev is C library for creating and accessing dynamic arrays (dev package)

Introduction

In this tutorial we learn how to install libjudy-dev on Ubuntu 20.04.

What is libjudy-dev

libjudy-dev is:

Judy is a C library that implements a dynamic array. Empty Judy arrays are declared with null pointers. A Judy array consumes memory only when populated yet can grow to take advantage of all available memory. Judy’s key benefits are: scalability, performance, memory efficiency, and ease of use. Judy arrays are designed to grow without tuning into the peta-element range, scaling near O(log-base-256).

Judy arrays are accessed with insert, retrieve, and delete calls for number or string indexes. Configuration and tuning are not required – in fact not possible. Judy offers sorting, counting, and neighbor/empty searching. Indexes can be sequential, clustered, periodic, or random – it doesn’t matter to the algorithm. Judy arrays can be arranged hierarchically to handle any bit patterns – large indexes, sets of keys, etc.

Judy is often an improvement over common data structures such as: arrays, sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists, other sort and search algorithms, and counting functions.

This is the development package.

There are three methods to install libjudy-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libjudy-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjudy-dev using apt-get by running the following command:

sudo apt-get -y install libjudy-dev

Install libjudy-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjudy-dev using apt by running the following command:

sudo apt -y install libjudy-dev

Install libjudy-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libjudy-dev using aptitude by running the following command:

sudo aptitude -y install libjudy-dev

How To Uninstall libjudy-dev on Ubuntu 20.04

To uninstall only the libjudy-dev package we can use the following command:

sudo apt-get remove libjudy-dev

Uninstall libjudy-dev And Its Dependencies

To uninstall libjudy-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libjudy-dev

Remove libjudy-dev Configurations and Data

To remove libjudy-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libjudy-dev

Remove libjudy-dev configuration, data, and all of its dependencies

We can use the following command to remove libjudy-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjudy-dev

References

Summary

In this tutorial we learn how to install libjudy-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.