How To Install libghc-shake-data on Ubuntu 18.04

In this tutorial we learn how to install libghc-shake-data on Ubuntu 18.04. libghc-shake-data is Haskell library for writing build systems; data files

Introduction

In this tutorial we learn how to install libghc-shake-data on Ubuntu 18.04.

What is libghc-shake-data

libghc-shake-data 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 contains the data files needed to use the library.

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

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

Install libghc-shake-data Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-shake-data

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

sudo aptitude -y install libghc-shake-data

How To Uninstall libghc-shake-data on Ubuntu 18.04

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

sudo apt-get remove libghc-shake-data

Uninstall libghc-shake-data And Its Dependencies

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

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

Remove libghc-shake-data Configurations and Data

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

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

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

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

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

References

Summary

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