How To Install readline on Fedora 36

In this tutorial we learn how to install readline in Fedora 36. readline is A library for editing typed command lines

Introduction

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

What is readline

The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes are available. The Readline library includes additional functions for maintaining a list of previously-entered command lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.

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

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

sudo dnf -y install readline

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

sudo yum -y install readline

How To Uninstall readline on Fedora 36

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

sudo dnf remove readline

readline Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/52
/usr/lib/.build-id/52/4a24317a37b45b87ba67e30845656ef9ce3476
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/1af4c8a5545983a2cfe7f5fab85ef39a8f5f1a
/usr/lib64/libhistory.so.8
/usr/lib64/libhistory.so.8.1
/usr/lib64/libreadline.so.8
/usr/lib64/libreadline.so.8.1
/usr/share/info/history.info.gz
/usr/share/info/rluserman.info.gz
/usr/share/licenses/readline
/usr/share/licenses/readline/COPYING
/usr/share/licenses/readline/USAGE

References

Summary

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