How To Install haskell-devscripts on Ubuntu 18.04

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

Introduction

In this tutorial we learn how to install haskell-devscripts on Ubuntu 18.04.

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 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 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 Ubuntu. 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 Ubuntu 18.04

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 Ubuntu 18.04, 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 Ubuntu 18.04 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

References

Summary

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