How To Install ghc-network on Fedora 36

In this tutorial we learn how to install ghc-network in Fedora 36. ghc-network is Low-level networking interface

Introduction

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

What is ghc-network

This package provides a low-level networking interface. === High-Level Packages Other packages provide higher level interfaces * connection * hookup * network-simple === Extended Packages ’network’ seeks to provide a cross-platform core for networking. As such some APIs live in extended libraries. Packages in the ’network’ ecosystem are often prefixed with ’network-’. ==== ’network-bsd’ In ’network-3.0.0.0’ the ‘Network.BSD’ module was split off into its own package, ’network-bsd-3.0.0.0’. ==== ’network-uri’ In ’network-2.6’ the ‘Network.URI’ module was split off into its own package, ’network-uri-2.6’. If you’re using the ‘Network.URI’ module you can automatically get it from the right package by adding this to your ‘.cabal’ file > library > build-depends

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

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

sudo dnf -y install ghc-network

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

sudo yum -y install ghc-network

How To Uninstall ghc-network on Fedora 36

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

sudo dnf remove ghc-network

ghc-network Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/aeb223c775b918fdd5a5964a74f8601d8c97a8
/usr/lib64/libHSnetwork-3.1.1.1-3CpLEv3PTpkA7EVtKWaejV-ghc8.10.5.so
/usr/share/licenses/ghc-network
/usr/share/licenses/ghc-network/LICENSE

References

Summary

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