How To Install libghc-resolv-doc on Debian 12

Learn how to install libghc-resolv-doc on Debian 12 with this tutorial. libghc-resolv-doc is Domain Name Service (DNS) lookup via libresolv; documentation

Introduction

In this tutorial we learn how to install libghc-resolv-doc on Debian 12.

What is libghc-resolv-doc

libghc-resolv-doc is:

This package implements an API for accessing the Domain Name Service (DNS) resolver service via the standard libresolv system library (whose API is often available directly via the standard libc C library) on Unix systems.

This package also includes support for decoding message record types as defined in the following RFCs:

  • RFC 1035: Domain Names - Implementation And Specification
  • RFC 1183: New DNS RR Definitions
  • RFC 2782: A DNS RR for specifying the location of services (DNS SRV)
  • RFC 2915: The Naming Authority Pointer (NAPTR) DNS Resource Record
  • RFC 3596: DNS Extensions to Support IP Version 6
  • RFC 4034: Resource Records for the DNS Security Extensions
  • RFC 4255: Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints
  • RFC 4408: Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1
  • RFC 5155: DNS Security (DNSSEC) Hashed Authenticated Denial of Existence
  • RFC 6844: DNS Certification Authority Authorization (CAA) Resource Record
  • RFC 6891: Extension Mechanisms for DNS (EDNS(0))
  • RFC 7553: The Uniform Resource Identifier (URI) DNS Resource Record

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

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

sudo apt-get -y install libghc-resolv-doc

Install libghc-resolv-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-resolv-doc

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

sudo aptitude -y install libghc-resolv-doc

How To Uninstall libghc-resolv-doc on Debian 12

To uninstall only the libghc-resolv-doc package we can use the following command:

sudo apt-get remove libghc-resolv-doc

Uninstall libghc-resolv-doc And Its Dependencies

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

sudo apt-get -y autoremove libghc-resolv-doc

Remove libghc-resolv-doc Configurations and Data

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

sudo apt-get -y purge libghc-resolv-doc

Remove libghc-resolv-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-resolv-doc

Dependencies

libghc-resolv-doc have the following dependencies:

References

Summary

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