How To Install readline on Rocky Linux 8

In this tutorial we learn how to install readline on Rocky Linux 8. readline is A library for editing typed command lines

Introduction

In this tutorial we learn how to install readline on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install readline.

Install readline on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8

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

sudo dnf remove readline

readline Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/9cddba5f0b9263ab06ec7776476282ef266fa6
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/5d4cf387b2929e935511a42784e48aa75f1358
/usr/lib/libhistory.so.7
/usr/lib/libhistory.so.7.0
/usr/lib/libreadline.so.7
/usr/lib/libreadline.so.7.0
/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
/usr/lib/.build-id
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/7d7fb65fbb73ce064321ccf2a92ef3dd9faba1
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/1ab25f0f43fe10cecd0bdb18779a7bc9ede350
/usr/lib64/libhistory.so.7
/usr/lib64/libhistory.so.7.0
/usr/lib64/libreadline.so.7
/usr/lib64/libreadline.so.7.0
/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 Rocky Linux 8 using yum and dnf.