How To Install libtecla1 on Ubuntu 18.04

In this tutorial we learn how to install libtecla1 on Ubuntu 18.04. libtecla1 is interactive command line editing facilities

Introduction

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

What is libtecla1

libtecla1 is:

The tecla library provides UNIX and LINUX programs with interactive command line editing facilities, similar to those of the UNIX tcsh shell. In addition to simple command-line editing, it supports recall of previously entered command lines, TAB completion of file names or other tokens, and in-line wild-card expansion of filenames. The internal functions which perform file-name completion and wild-card expansion are also available externally for optional use by programs.

In addition, the library includes a path-searching module. This allows an application to provide completion and lookup of files located in UNIX style paths. Although not built into the line editor by default, it can easily be called from custom tab-completion callback functions. This was originally conceived for completing the names of executables and providing a way to look up their locations in the user’s PATH environment variable, but it can easily be asked to look up and complete other types of files in any list of directories.

Note that special care has been taken to allow the use of this library in threaded programs. The option to enable this is discussed in the Makefile, and specific discussions of thread safety are presented in the included man pages.

This package contains the runtime libraries.

There are three methods to install libtecla1 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 libtecla1 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libtecla1

Install libtecla1 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtecla1

Install libtecla1 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 libtecla1 using aptitude by running the following command:

sudo aptitude -y install libtecla1

How To Uninstall libtecla1 on Ubuntu 18.04

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

sudo apt-get remove libtecla1

Uninstall libtecla1 And Its Dependencies

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

sudo apt-get -y autoremove libtecla1

Remove libtecla1 Configurations and Data

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

sudo apt-get -y purge libtecla1

Remove libtecla1 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtecla1

References

Summary

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