How To Install libghc-shake-dev on Debian 10

Learn how to install libghc-shake-dev on Debian 10 with this tutorial. libghc-shake-dev is Haskell library for writing build systems

Introduction

In this tutorial we learn how to install libghc-shake-dev on Debian 10.

What is libghc-shake-dev

libghc-shake-dev is:

Shake is a Haskell library for writing build systems - designed as a replacement for make.

To use Shake the user writes a Haskell program that imports Development.Shake, defines some build rules, and calls the Development.Shake.shakeArgs function. Thanks to do notation and infix operators, a simple Shake build system is not too dissimilar from a simple Makefile. However, as build systems get more complex, Shake is able to take advantage of the excellent abstraction facilities offered by Haskell and easily support much larger projects. The Shake library provides all the standard features available in other build systems, including automatic parallelism and minimal rebuilds. Shake also provides more accurate dependency tracking, including seamless support for generated files, and dependencies on system information (e.g. compiler version).

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

There are three methods to install libghc-shake-dev on Debian 10. 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-shake-dev 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-shake-dev using apt-get by running the following command:

sudo apt-get -y install libghc-shake-dev

Install libghc-shake-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-shake-dev

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

sudo aptitude -y install libghc-shake-dev

How To Uninstall libghc-shake-dev on Debian 10

To uninstall only the libghc-shake-dev package we can use the following command:

sudo apt-get remove libghc-shake-dev

Uninstall libghc-shake-dev And Its Dependencies

To uninstall libghc-shake-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libghc-shake-dev

Remove libghc-shake-dev Configurations and Data

To remove libghc-shake-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libghc-shake-dev

Remove libghc-shake-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-shake-dev

Dependencies

libghc-shake-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-shake-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.