How To Install compat-readline5.i686 on Amazon Linux 2

In this tutorial we learn how to install compat-readline5.i686 in Amazon Linux 2. compat-readline5.i686 is A library for editing typed command lines

Introduction

In this tutorial we learn how to install compat-readline5.i686 on Amazon Linux 2.

What is compat-readline5.i686

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 to install compat-readline5.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install compat-readline5.i686.

Install compat-readline5.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install compat-readline5.i686 using yum by running the following command:

sudo yum -y install compat-readline5.i686

How To Uninstall compat-readline5.i686 on Amazon Linux 2

To uninstall only the compat-readline5.i686 package we can use the following command:

sudo yum remove compat-readline5.i686

compat-readline5.i686 Package Contents on Amazon Linux 2

/lib/libreadline.so.5
/lib/libreadline.so.5.2
/usr/lib/libhistory.so.5
/usr/lib/libhistory.so.5.2
/usr/share/doc/compat-readline5-5.2
/usr/share/doc/compat-readline5-5.2/CHANGES
/usr/share/doc/compat-readline5-5.2/COPYING
/usr/share/doc/compat-readline5-5.2/NEWS
/usr/share/doc/compat-readline5-5.2/README
/usr/share/doc/compat-readline5-5.2/USAGE

References

Summary

In this tutorial we learn how to install compat-readline5.i686 on Amazon Linux 2 using yum.