How To Install libghc-shake-prof on Ubuntu 18.04

Hostnbit

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

Introduction

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

What is libghc-shake-prof

libghc-shake-prof 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, compiled
for profiling. See http://www.haskell.org/ for more information on Haskell.

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

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

Install libghc-shake-prof Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-shake-prof

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

sudo aptitude -y install libghc-shake-prof

How To Uninstall libghc-shake-prof on Ubuntu 18.04

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

sudo apt-get remove libghc-shake-prof

Uninstall libghc-shake-prof And Its Dependencies

To uninstall libghc-shake-prof 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-prof

Remove libghc-shake-prof Configurations and Data

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

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

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

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

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

References

Summary

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

Hostnbit

Leave a Comment

Your email address will not be published. Required fields are marked *

Menu Title
Scroll to Top