rlwrap command not found

In this troubleshooting guide we learn how to fix rlwrap command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rlwrap: command not found

or when using sudo you get the following error message

sudo: rlwrap: command not found

Solutions to rlwrap: command not found

How To Fix rlwrap: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rlwrap is provided by rlwrap package.

rlwrap is:

This package provides a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is remembered across invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line.

To fix this problem, we can install more using the command below.

sudo apt-get -y install rlwrap

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install rlwrap.

sudo apt -y install rlwrap

Or if you have aptitude installed you can use the following command.

sudo aptitude install rlwrap

Summary

In this tutorial we learn how to fix rlwrap command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.