How To Install libghc-hierarchical-clustering-prof on Ubuntu 18.04

In this tutorial we learn how to install libghc-hierarchical-clustering-prof on Ubuntu 18.04. libghc-hierarchical-clustering-prof is fast algorithms for single, average/UPGMA and complete linkage clustering; profiling libraries

Introduction

In this tutorial we learn how to install libghc-hierarchical-clustering-prof on Ubuntu 18.04.

What is libghc-hierarchical-clustering-prof

libghc-hierarchical-clustering-prof is:

This package provides a function to create a dendrogram from a list of items and a distance function between them. Initially a singleton cluster is created for each item, and then new, bigger clusters are created by merging the two clusters with least distance between them. The distance between two clusters is calculated according to the linkage type. The dendrogram represents not only the clusters but also the order on which they were created.

This package has many implementations with different performance characteristics. There are SLINK and CLINK algorithm implementations that are optimal in both space and time. There are also naive implementations using a distance matrix. Using the dendrogram function from Data.Clustering.Hierarchical automatically chooses the best implementation we have.

This package provides a library for the Haskell programming language, compiled for profiling. See http://www.haskell.org/ for more information on Haskell.

There are three methods to install libghc-hierarchical-clustering-prof 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 libghc-hierarchical-clustering-prof Using apt-get

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

sudo apt-get update

After updating apt database, We can install libghc-hierarchical-clustering-prof using apt-get by running the following command:

sudo apt-get -y install libghc-hierarchical-clustering-prof

Install libghc-hierarchical-clustering-prof Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-hierarchical-clustering-prof using apt by running the following command:

sudo apt -y install libghc-hierarchical-clustering-prof

Install libghc-hierarchical-clustering-prof 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 libghc-hierarchical-clustering-prof using aptitude by running the following command:

sudo aptitude -y install libghc-hierarchical-clustering-prof

How To Uninstall libghc-hierarchical-clustering-prof on Ubuntu 18.04

To uninstall only the libghc-hierarchical-clustering-prof package we can use the following command:

sudo apt-get remove libghc-hierarchical-clustering-prof

Uninstall libghc-hierarchical-clustering-prof And Its Dependencies

To uninstall libghc-hierarchical-clustering-prof and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libghc-hierarchical-clustering-prof

Remove libghc-hierarchical-clustering-prof Configurations and Data

To remove libghc-hierarchical-clustering-prof configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libghc-hierarchical-clustering-prof

Remove libghc-hierarchical-clustering-prof configuration, data, and all of its dependencies

We can use the following command to remove libghc-hierarchical-clustering-prof configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libghc-hierarchical-clustering-prof

References

Summary

In this tutorial we learn how to install libghc-hierarchical-clustering-prof package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.