How To Install ghc-wreq on Fedora 36

In this tutorial we learn how to install ghc-wreq in Fedora 36. ghc-wreq is An easy-to-use HTTP client library

Introduction

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

What is ghc-wreq

A web client library that is designed for ease of use. Tutorial Features include * Simple but powerful lens-based API * A solid test suite, and built on reliable libraries like http-client and lens * Session handling includes connection keep-alive and pooling, and cookie persistence * Automatic response body decompression * Powerful multipart form and file upload handling * Support for JSON requests and responses, including navigation of schema-less responses * Basic and OAuth2 bearer authentication * Early TLS support via the tls package.

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

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

sudo dnf -y install ghc-wreq

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

sudo yum -y install ghc-wreq

How To Uninstall ghc-wreq on Fedora 36

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

sudo dnf remove ghc-wreq

ghc-wreq Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/de6bc38bb2f32810ba2fb684e3661fec2da30f
/usr/lib64/libHSwreq-0.5.3.3-IiXzVnt4aCxI2sim00OxUz-ghc8.10.5.so
/usr/share/licenses/ghc-wreq
/usr/share/licenses/ghc-wreq/LICENSE.md

References

Summary

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