How To Install libghc-statistics-doc on Ubuntu 18.04

In this tutorial we learn how to install libghc-statistics-doc on Ubuntu 18.04. libghc-statistics-doc is A library of statistical types, data, and functions; documentation

Introduction

In this tutorial we learn how to install libghc-statistics-doc on Ubuntu 18.04.

What is libghc-statistics-doc

libghc-statistics-doc is:

This library provides a number of common functions and types useful in statistics. Our focus is on high performance, numerical robustness, and use of good algorithms. Where possible, we provide references to the statistical literature.

The library’s facilities can be divided into three broad categories:

Working with widely used discrete and continuous probability distributions. (There are dozens of exotic distributions in use; we focus on the most common.)

Computing with sample data: quantile estimation, kernel density estimation, bootstrap methods, and autocorrelation analysis.

Random variate generation under several different distributions.

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

There are three methods to install libghc-statistics-doc 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-statistics-doc 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-statistics-doc using apt-get by running the following command:

sudo apt-get -y install libghc-statistics-doc

Install libghc-statistics-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-statistics-doc using apt by running the following command:

sudo apt -y install libghc-statistics-doc

Install libghc-statistics-doc 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-statistics-doc using aptitude by running the following command:

sudo aptitude -y install libghc-statistics-doc

How To Uninstall libghc-statistics-doc on Ubuntu 18.04

To uninstall only the libghc-statistics-doc package we can use the following command:

sudo apt-get remove libghc-statistics-doc

Uninstall libghc-statistics-doc And Its Dependencies

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

sudo apt-get -y autoremove libghc-statistics-doc

Remove libghc-statistics-doc Configurations and Data

To remove libghc-statistics-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libghc-statistics-doc

Remove libghc-statistics-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-statistics-doc

References

Summary

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