How To Install libghc-xmlhtml-prof on Debian 10

Learn how to install libghc-xmlhtml-prof on Debian 10 with this tutorial. libghc-xmlhtml-prof is XML parser and renderer with HTML 5 quirks mode; profiling libraries

Introduction

In this tutorial we learn how to install libghc-xmlhtml-prof on Debian 10.

What is libghc-xmlhtml-prof

libghc-xmlhtml-prof is:

Contains renderers and parsers for both XML and HTML 5 document fragments, which share data structures so that it’s easy to work with both. Document fragments are bits of documents, which are not constrained by some of the high-level structure rules (in particular, they may contain more than one root element).

Note that this is not a compliant HTML 5 parser. Rather, it is a parser for HTML 5 compliant documents. It does not implement the HTML 5 parsing algorithm, and should generally be expected to perform correctly only on documents that you trust to conform to HTML 5. This is not a suitable library for implementing web crawlers or other software that will be exposed to documents from outside sources. The result is also not the HTML 5 node structure, but rather something closer to the physical structure. For example, omitted start tags are not inserted (and so, their corresponding end tags must also be omitted).

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-xmlhtml-prof on Debian 10. 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-xmlhtml-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-xmlhtml-prof using apt-get by running the following command:

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

Install libghc-xmlhtml-prof Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-xmlhtml-prof

Install libghc-xmlhtml-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libghc-xmlhtml-prof

How To Uninstall libghc-xmlhtml-prof on Debian 10

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

sudo apt-get remove libghc-xmlhtml-prof

Uninstall libghc-xmlhtml-prof And Its Dependencies

To uninstall libghc-xmlhtml-prof and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libghc-xmlhtml-prof

Remove libghc-xmlhtml-prof Configurations and Data

To remove libghc-xmlhtml-prof configuration and data from Debian 10 we can use the following command:

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

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

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

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

Dependencies

libghc-xmlhtml-prof have the following dependencies:

References

Summary

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