How To Install libhat-trie-dev on Ubuntu 18.04

In this tutorial we learn how to install libhat-trie-dev on Ubuntu 18.04. libhat-trie-dev is Development headers and static libraries for HAT-trie library

Introduction

In this tutorial we learn how to install libhat-trie-dev on Ubuntu 18.04.

What is libhat-trie-dev

libhat-trie-dev is:

This package provides development headers and static libraries for libhat-trie, an ANSI C99 implementation of the HAT-trie data structure of Askitis and Sinha, which is an extremely efficient (space and time) modern variant of tries.

There are three methods to install libhat-trie-dev on Ubuntu 18.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 libhat-trie-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 libhat-trie-dev using apt-get by running the following command:

sudo apt-get -y install libhat-trie-dev

Install libhat-trie-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhat-trie-dev

Install libhat-trie-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 libhat-trie-dev using aptitude by running the following command:

sudo aptitude -y install libhat-trie-dev

How To Uninstall libhat-trie-dev on Ubuntu 18.04

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

sudo apt-get remove libhat-trie-dev

Uninstall libhat-trie-dev And Its Dependencies

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

sudo apt-get -y autoremove libhat-trie-dev

Remove libhat-trie-dev Configurations and Data

To remove libhat-trie-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libhat-trie-dev

Remove libhat-trie-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhat-trie-dev

References

Summary

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