How To Install readline.x86_64 on Amazon Linux 2

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

Introduction

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

What is readline.x86_64

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

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

sudo yum -y install readline.x86_64

How To Uninstall readline.x86_64 on Amazon Linux 2

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

sudo yum remove readline.x86_64

readline.x86_64 Package Contents on Amazon Linux 2

/lib64/libreadline.so.6
/lib64/libreadline.so.6.2
/usr/lib64/libhistory.so.6
/usr/lib64/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.x86_64 on Amazon Linux 2 using yum.