How To Install ghc-readline on Fedora 36

In this tutorial we learn how to install ghc-readline in Fedora 36. ghc-readline is An interface to the GNU readline library

Introduction

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

What is ghc-readline

The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. The Readline library includes additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.

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

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

sudo dnf -y install ghc-readline

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

sudo yum -y install ghc-readline

How To Uninstall ghc-readline on Fedora 36

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

sudo dnf remove ghc-readline

ghc-readline Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/81
/usr/lib/.build-id/81/bd3b17f6f48a4f0a52af4dd62a346f648c3a9e
/usr/lib64/libHSreadline-1.0.3.0-I4ggmPKJasZ7A5QgCrVstj-ghc8.10.5.so
/usr/share/licenses/ghc-readline
/usr/share/licenses/ghc-readline/LICENSE

References

Summary

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