How To Install hugs on Debian 12

Learn how to install hugs on Debian 12 with this tutorial. hugs is Haskell 98 interpreter

Introduction

In this tutorial we learn how to install hugs on Debian 12.

What is hugs

hugs is:

Hugs is an interpreter for the non-strict, purely functional programming language Haskell. This version of Hugs, Hugs 98, supports nearly all of the Haskell 98 specification, as well as a number of extensions.

The Haskell language is described by documents in the haskell-doc package. Other libraries are documented in the ghc6-doc package.

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

Install hugs Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install hugs

Install hugs Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install hugs using apt by running the following command:

sudo apt -y install hugs

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

sudo aptitude -y install hugs

How To Uninstall hugs on Debian 12

To uninstall only the hugs package we can use the following command:

sudo apt-get remove hugs

Uninstall hugs And Its Dependencies

To uninstall hugs and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove hugs

Remove hugs Configurations and Data

To remove hugs configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge hugs

Remove hugs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hugs

Dependencies

hugs have the following dependencies:

References

Summary

In this tutorial we learn how to install hugs package on Debian 12 using different package management tools: apt, apt-get and aptitude.