Installing rlwrap on Amazon linux
This is an utility which provides history for different kind of commands like sqlite3, openssl etc. It also allows you to navigate through the history using up/down arrows or using search command control + R.
Download the binary package using following command -
64-bit processor
[naveen:~]$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/rlwrap-0.42-1.el7.x86_64.rpm
32-bit processor
[naveen:~]$ wget http://dl.fedoraproject.org/pub/epel/6/i386/Packages/r/rlwrap-0.42-1.el6.i686.rpm
Use yum command to install it.
64-bit processor
[naveen:~]$ sudo yum install rlwrap-0.42–1.el7.x86_64.rpm
32-bit processor
[naveen:~]$ sudo yum install rlwrap-0.42–1.el6.i686.rpm
Verification
[naveen:~]$ which rlwrap
/usr/bin/rlwrap
Complete list of rlwrap package for different kinds of Linux distributions.