How To Install libtelnet-utils on Ubuntu 18.04

In this tutorial we learn how to install libtelnet-utils on Ubuntu 18.04. libtelnet-utils is Small library for parsing the TELNET protocol - utilities

Introduction

In this tutorial we learn how to install libtelnet-utils on Ubuntu 18.04.

What is libtelnet-utils

libtelnet-utils is:

libtelnet is a small library for parsing the TELNET protocol, responding to TELNET commands via an event interface, and generating valid TELNET commands.

libtelnet includes support for the non-official MCCP, MCCP2, ZMP, and MSSP protocols used by MUD servers and clients.

This package contains a small set of utilities based on libtelnet for testing and debugging TELNET clients.

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

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

sudo apt-get update

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

sudo apt-get -y install libtelnet-utils

Install libtelnet-utils Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtelnet-utils

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

sudo aptitude -y install libtelnet-utils

How To Uninstall libtelnet-utils on Ubuntu 18.04

To uninstall only the libtelnet-utils package we can use the following command:

sudo apt-get remove libtelnet-utils

Uninstall libtelnet-utils And Its Dependencies

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

sudo apt-get -y autoremove libtelnet-utils

Remove libtelnet-utils Configurations and Data

To remove libtelnet-utils configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtelnet-utils

Remove libtelnet-utils configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtelnet-utils

References

Summary

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