How To Install libhugs-haskell-src-bundled on Debian 9
Introduction
In this tutorial we learn how to install libhugs-haskell-src-bundled on Debian 9.
What is libhugs-haskell-src-bundled
libhugs-haskell-src-bundled is:
Facilities for manipulating Haskell source code: an abstract syntax, lexer, parser and pretty-printer.
This is the version bundled with the interpreter.
There are three methods to install libhugs-haskell-src-bundled 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 libhugs-haskell-src-bundled Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libhugs-haskell-src-bundled using apt-get by running the following command:
sudo apt-get -y install libhugs-haskell-src-bundled
Install libhugs-haskell-src-bundled Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libhugs-haskell-src-bundled using apt by running the following command:
sudo apt -y install libhugs-haskell-src-bundled
Install libhugs-haskell-src-bundled 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 libhugs-haskell-src-bundled using aptitude by running the following command:
sudo aptitude -y install libhugs-haskell-src-bundled
How To Uninstall libhugs-haskell-src-bundled on Debian 9
To uninstall only the libhugs-haskell-src-bundled package we can use the following command:
sudo apt-get remove libhugs-haskell-src-bundled
Uninstall libhugs-haskell-src-bundled And Its Dependencies
To uninstall libhugs-haskell-src-bundled and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libhugs-haskell-src-bundled
Remove libhugs-haskell-src-bundled Configurations and Data
To remove libhugs-haskell-src-bundled configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libhugs-haskell-src-bundled
Remove libhugs-haskell-src-bundled configuration, data, and all of its dependencies
We can use the following command to remove libhugs-haskell-src-bundled configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhugs-haskell-src-bundled
Dependencies
libhugs-haskell-src-bundled have the following dependencies:
References
Summary
In this tutorial we learn how to install libhugs-haskell-src-bundled package on Debian 9 using different package management tools: apt, apt-get and aptitude.