How To Install libghc-resolv-dev on Kali Linux

In this tutorial we learn how to install libghc-resolv-dev on Kali Linux. libghc-resolv-dev is Domain Name Service (DNS) lookup via libresolv

Introduction

In this tutorial we learn how to install libghc-resolv-dev on Kali Linux.

What is libghc-resolv-dev

libghc-resolv-dev 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 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-dev on Kali Linux. 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-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-resolv-dev using apt-get by running the following command:

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

Install libghc-resolv-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-resolv-dev

Install libghc-resolv-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libghc-resolv-dev

How To Uninstall libghc-resolv-dev on Kali Linux

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

sudo apt-get remove libghc-resolv-dev

Uninstall libghc-resolv-dev And Its Dependencies

To uninstall libghc-resolv-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

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

Remove libghc-resolv-dev Configurations and Data

To remove libghc-resolv-dev configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

libghc-resolv-dev have the following dependencies:

References

Summary

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