How To Install libghc-hxt-dev on Debian 12

Learn how to install libghc-hxt-dev on Debian 12 with this tutorial. libghc-hxt-dev is collection of tools for processing XML with Haskell

Introduction

In this tutorial we learn how to install libghc-hxt-dev on Debian 12.

What is libghc-hxt-dev

libghc-hxt-dev is:

The Haskell XML Toolbox bases on the ideas of HaXml and HXML, but introduces a more general approach for processing XML with Haskell. The Haskell XML Toolbox uses a generic data model for representing XML documents, including the DTD subset and the document subset, in Haskell. It contains a validating XML parser, a HTML parser, namespace support, an XPath expression evaluator, an XSLT library, a RelaxNG schema validator and funtions for serialization and deserialization of user defined data. The library makes extensive use of the arrow approach for processing XML.

Since version 9 the toolbox is partitioned into various (sub-)packages. This package contains the core functionality, hxt-curl, hxt-tagsoup, hxt-relaxng, hxt-xpath, hxt-xslt, hxt-regex-xmlschema contain the extensions. hxt-unicode contains encoding and decoding functions, hxt-charproperties char properties for unicode and XML.

This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.

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

sudo apt-get -y install libghc-hxt-dev

Install libghc-hxt-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-hxt-dev

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

sudo aptitude -y install libghc-hxt-dev

How To Uninstall libghc-hxt-dev on Debian 12

To uninstall only the libghc-hxt-dev package we can use the following command:

sudo apt-get remove libghc-hxt-dev

Uninstall libghc-hxt-dev And Its Dependencies

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

sudo apt-get -y autoremove libghc-hxt-dev

Remove libghc-hxt-dev Configurations and Data

To remove libghc-hxt-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libghc-hxt-dev

Remove libghc-hxt-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-hxt-dev

Dependencies

libghc-hxt-dev have the following dependencies:

References

Summary

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