How To Install readline.i686 on Amazon Linux 2

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

Introduction

In this tutorial we learn how to install readline.i686 on Amazon Linux 2.

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

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

sudo yum -y install readline.i686

How To Uninstall readline.i686 on Amazon Linux 2

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

sudo yum remove readline.i686

readline.i686 Package Contents on Amazon Linux 2

/lib/libreadline.so.6
/lib/libreadline.so.6.2
/usr/lib/libhistory.so.6
/usr/lib/libhistory.so.6.2
/usr/share/doc/readline-6.2
/usr/share/doc/readline-6.2/CHANGES
/usr/share/doc/readline-6.2/COPYING
/usr/share/doc/readline-6.2/NEWS
/usr/share/doc/readline-6.2/README
/usr/share/doc/readline-6.2/USAGE
/usr/share/info/history.info.gz
/usr/share/info/rluserman.info.gz

References

Summary

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