How To Install ghc-mod-el on Debian 9

In this tutorial we learn how to install ghc-mod-el on Debian 9. ghc-mod-el is Happy Haskell programming with Emacs

Introduction

In this tutorial we learn how to install ghc-mod-el on Debian 9.

What is ghc-mod-el

ghc-mod-el is:

This package proviceds the GNU Emacs integration code for ghc-mod.

Note: This package does NOT support xemacs*. Only for emacs*.

There are three methods to install ghc-mod-el on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ghc-mod-el Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ghc-mod-el using apt-get by running the following command:

sudo apt-get -y install ghc-mod-el

Install ghc-mod-el Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ghc-mod-el using apt by running the following command:

sudo apt -y install ghc-mod-el

Install ghc-mod-el 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 ghc-mod-el using aptitude by running the following command:

sudo aptitude -y install ghc-mod-el

How To Uninstall ghc-mod-el on Debian 9

To uninstall only the ghc-mod-el package we can use the following command:

sudo apt-get remove ghc-mod-el

Uninstall ghc-mod-el And Its Dependencies

To uninstall ghc-mod-el and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove ghc-mod-el

Remove ghc-mod-el Configurations and Data

To remove ghc-mod-el configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ghc-mod-el

Remove ghc-mod-el configuration, data, and all of its dependencies

We can use the following command to remove ghc-mod-el configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ghc-mod-el

Dependencies

ghc-mod-el have the following dependencies:

References

Summary

In this tutorial we learn how to install ghc-mod-el package on Debian 9 using different package management tools: apt, apt-get and aptitude.