How To Install haskell-devscripts on Debian 11

In this tutorial we learn how to install haskell-devscripts on Debian 11. haskell-devscripts is Tools to help Debian developers build Haskell packages

Introduction

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

What is haskell-devscripts

haskell-devscripts is:

This package provides a collection of scripts to help build Haskell packages for Debian. Unlike haskell-utils, this package is not expected to be installed on the machines of end users.

This package is designed to support Cabalized Haskell libraries. It is designed to build a library for each supported Debian compiler or interpreter, generate appropriate postinst/prerm files for each one, generate appropriate substvars entries for each one, and install the package in the Debian temporary area as part of the build process.

This package is actually an empty package and is only useful for its dependency on hscolour.

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

sudo apt-get -y install haskell-devscripts

Install haskell-devscripts Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install haskell-devscripts

Install haskell-devscripts 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-devscripts using aptitude by running the following command:

sudo aptitude -y install haskell-devscripts

How To Uninstall haskell-devscripts on Debian 11

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

sudo apt-get remove haskell-devscripts

Uninstall haskell-devscripts And Its Dependencies

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

sudo apt-get -y autoremove haskell-devscripts

Remove haskell-devscripts Configurations and Data

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

sudo apt-get -y purge haskell-devscripts

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

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

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

Dependencies

haskell-devscripts have the following dependencies:

References

Summary

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