How To Install readline on CentOS 8

readline is A library for editing typed command lines A library for editing typed command lines

Introduction

In this tutorial we learn how to install readline on CentOS 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. readline 7.0 10.el8 i686 206 k readline-7.0-10.el8.src.rpm baseos A library for editing typed command lines http GPLv3+ 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install readline.

Install readline on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install readline using dnf by running the following command:

sudo dnf -y install readline

Install readline on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove readline

readline Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/48e0f611da8d0d5f7724d7faceb776d3026538
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/cbdfa76485650f38d983ee69f5e5f6b15f1a46
/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/cd
/usr/lib/.build-id/cd/1bc007ec2e558d662585bf8c5bbcd2b9526faa
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/81f0a1b2a891e387f02769db50c350d505b888
/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 CentOS 8 using yum and dnf.