How To Install ghc-resolv on Fedora 36

In this tutorial we learn how to install ghc-resolv in Fedora 36. ghc-resolv is Domain Name Service (DNS) lookup via the libresolv standard library routines

Introduction

In this tutorial we learn how to install ghc-resolv on Fedora 36.

What is ghc-resolv

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

We can use yum or dnf to install ghc-resolv on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-resolv.

Install ghc-resolv on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-resolv using dnf by running the following command:

sudo dnf -y install ghc-resolv

Install ghc-resolv on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-resolv using yum by running the following command:

sudo yum -y install ghc-resolv

How To Uninstall ghc-resolv on Fedora 36

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

sudo dnf remove ghc-resolv

ghc-resolv Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/172129ae0437c3553d94cee24c301084e4780a
/usr/lib64/libHSresolv-0.1.2.0-EmtLLXrlOkjGprcYPTZhpH-ghc8.10.5.so
/usr/share/licenses/ghc-resolv
/usr/share/licenses/ghc-resolv/LICENSE
/usr/share/licenses/ghc-resolv/LICENSE.GPLv2
/usr/share/licenses/ghc-resolv/LICENSE.GPLv3

References

Summary

In this tutorial we learn how to install ghc-resolv on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).