How To Install ghc-http-client-restricted on Fedora 36

In this tutorial we learn how to install ghc-http-client-restricted in Fedora 36. ghc-http-client-restricted is Restricting the servers that http-client will use

Introduction

In this tutorial we learn how to install ghc-http-client-restricted on Fedora 36.

What is ghc-http-client-restricted

Addition to the http-client and http-client-tls libraries, that restricts the HTTP servers that can be used. This is useful when a security policy needs to eg, prevent connections to HTTP servers on localhost or a local network, or only allow connections to a specific HTTP server. It handles restricting redirects as well as the initial HTTP connection, and it also guards against DNS poisoning attacks.

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

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

sudo dnf -y install ghc-http-client-restricted

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

sudo yum -y install ghc-http-client-restricted

How To Uninstall ghc-http-client-restricted on Fedora 36

To uninstall only the ghc-http-client-restricted package we can use the following command:

sudo dnf remove ghc-http-client-restricted

ghc-http-client-restricted Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/6774fd1986df7625dd3f63ef11dddbcac4b2df
/usr/lib64/libHShttp-client-restricted-0.0.3-I8clar5wAFb14DkZg2GEsV-ghc8.10.5.so
/usr/share/licenses/ghc-http-client-restricted
/usr/share/licenses/ghc-http-client-restricted/LICENSE

References

Summary

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