How To Install libt-digest-java on Ubuntu 18.04

In this tutorial we learn how to install libt-digest-java on Ubuntu 18.04. libt-digest-java is Data structure for quantiles and related rank statistics

Introduction

In this tutorial we learn how to install libt-digest-java on Ubuntu 18.04.

What is libt-digest-java

libt-digest-java is:

The t-digest construction algorithm uses a variant of 1-dimensional k-means clustering to product a data structure that is related to the Q-digest. This t-digest data structure can be used to estimate quantiles or compute other rank statistics. The advantage of the t-digest over the Q-digest is that the t-digest can handle floating point values while the Q-digest is limited to integers. With small changes, the t-digest can handle any values from any ordered set that has something akin to a mean. The accuracy of quantile estimates produced by t-digests can be orders of magnitude more accurate than those produced by Q-digests in spite of the fact that t-digests are more compact when stored on disk.

There are three methods to install libt-digest-java 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 libt-digest-java Using apt-get

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

sudo apt-get update

After updating apt database, We can install libt-digest-java using apt-get by running the following command:

sudo apt-get -y install libt-digest-java

Install libt-digest-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libt-digest-java using apt by running the following command:

sudo apt -y install libt-digest-java

Install libt-digest-java 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 libt-digest-java using aptitude by running the following command:

sudo aptitude -y install libt-digest-java

How To Uninstall libt-digest-java on Ubuntu 18.04

To uninstall only the libt-digest-java package we can use the following command:

sudo apt-get remove libt-digest-java

Uninstall libt-digest-java And Its Dependencies

To uninstall libt-digest-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libt-digest-java

Remove libt-digest-java Configurations and Data

To remove libt-digest-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libt-digest-java

Remove libt-digest-java configuration, data, and all of its dependencies

We can use the following command to remove libt-digest-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libt-digest-java

References

Summary

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