How To Install rlfe on Ubuntu 18.04

In this tutorial we learn how to install rlfe on Ubuntu 18.04. rlfe is Front-end using readline to cook input lines for other programs

Introduction

In this tutorial we learn how to install rlfe on Ubuntu 18.04.

What is rlfe

rlfe is:

This tool lets you use history and line-editing in any text oriented tool. This is especially useful with third-party proprietary tools that cannot be distributed linked against readline. It is not perfect but it works pretty well.

See the ledit and rlwrap packages for other programs of that kind.

There are three methods to install rlfe on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rlfe Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rlfe using apt-get by running the following command:

sudo apt-get -y install rlfe

Install rlfe Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rlfe using apt by running the following command:

sudo apt -y install rlfe

Install rlfe Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rlfe using aptitude by running the following command:

sudo aptitude -y install rlfe

How To Uninstall rlfe on Ubuntu 18.04

To uninstall only the rlfe package we can use the following command:

sudo apt-get remove rlfe

Uninstall rlfe And Its Dependencies

To uninstall rlfe and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove rlfe

Remove rlfe Configurations and Data

To remove rlfe configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rlfe

Remove rlfe configuration, data, and all of its dependencies

We can use the following command to remove rlfe configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rlfe

References

Summary

In this tutorial we learn how to install rlfe package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.