This post is nothing new, and I created it after a little discussion on twitter about how to use readline support in SQL*Plus. The idea is not new, and I have compiled and used rlwrap for quite some time.
At the time, Frits Hoogland asked me why I didn’t use the EPEL package-and I had to admit to myself that I didn’t know the Extra Package for Enterprise Linux repository at all. But there is more to rlwrap and Linux I didn’t know, but first things first.
Installing rlwrap from EPEL
This is really simple-you can either add the EPEL repository to your /etc/yum.repos.d/ directory or simply download the rlwrap package and install it via RPM. A simple wget on your host does the trick. You can set environment variables when you’d like to use a proxy as shown here:
$ export http_proxy=http://your.proxy.server:proxyPort/ $ export https_proxy=https://your.proxy.server:proxyPort/
Depending your release of Enterprise Linux, you can find the rlwrap package here:
- http://dl.fedoraproject.org/pub/epel/5/x86_64/repoview/rlwrap.html
- http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/rlwrap.html
Then wget should download the file for you, at the time of writing 0.37 was current.