How To Install haskell-doc on Debian 11

In this tutorial we learn how to install haskell-doc on Debian 11. haskell-doc is Assorted Haskell language documentation

Introduction

In this tutorial we learn how to install haskell-doc on Debian 11.

What is haskell-doc

haskell-doc is:

This metapackage provides all the documentation for Haskell, “the” standard lazy functional programming language, packaged for Debian.

There are three methods to install haskell-doc on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install haskell-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 haskell-doc using apt-get by running the following command:

sudo apt-get -y install haskell-doc

Install haskell-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install haskell-doc

Install haskell-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install haskell-doc

How To Uninstall haskell-doc on Debian 11

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

sudo apt-get remove haskell-doc

Uninstall haskell-doc And Its Dependencies

To uninstall haskell-doc and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove haskell-doc

Remove haskell-doc Configurations and Data

To remove haskell-doc configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge haskell-doc

Remove haskell-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge haskell-doc

Dependencies

haskell-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install haskell-doc package on Debian 11 using different package management tools: apt, apt-get and aptitude.