How To Install ghc-network-bsd on Fedora 36

In this tutorial we learn how to install ghc-network-bsd in Fedora 36. ghc-network-bsd is POSIX network database (<netdb.h>) API

Introduction

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

What is ghc-network-bsd

This package provides Haskell bindings to the the [POSIX network database (<netdb.h>) API](http === Relationship to the ’network’ package The ’network’ package version 2.* series provides “Network.BSD” but it is removed starting with ’network’ version 3.0. This package provides the “Network.BSD” module split off from the <https If in addition to the ’network’’s modules also “Network.BSD” is necessary, add ’network-bsd’ to your dependencies like so > library > build-depends 2.9 I.e. you can control the version of the ’network’ package independently. NOTE ’network-bsd’ evolve differently, and consequently the versioning doesn’t match up anymore! Moreover, also starting with version ’network-bsd-2.8.1.0’ this package requires ’network >= 3’ in order to avoid module name clashes with ’network < 3’’s “Network.BSD” module. However, ’network-bsd-2.7.0.0’ and ’network-bsd-2.8.0.0’ passes thru the “Network.BSD” module from ’network-2.7.’ and ’network-2.8.’ respectively in a non-clashing way via Cabal’s feature while ensuring a well-defined <https ’network-bsd’. This is why the example above supporting a wide range of ’network’ versions works by including version 2.7.0.0 in the required version range of ’network-bsd'.

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

Install ghc-network-bsd 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-network-bsd using dnf by running the following command:

sudo dnf -y install ghc-network-bsd

Install ghc-network-bsd 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-network-bsd using yum by running the following command:

sudo yum -y install ghc-network-bsd

How To Uninstall ghc-network-bsd on Fedora 36

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

sudo dnf remove ghc-network-bsd

ghc-network-bsd Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/d3d281ccf8de615cf5bfe5e37f938517d61126
/usr/lib64/libHSnetwork-bsd-2.8.1.0-1V1y5WmPEsx3DwfHcuhWek-ghc8.10.5.so
/usr/share/licenses/ghc-network-bsd
/usr/share/licenses/ghc-network-bsd/LICENSE

References

Summary

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