How To Install libtelnet2 on Debian 11

In this tutorial we learn how to install libtelnet2 on Debian 11. libtelnet2 is Small library for parsing the TELNET protocol - shared library

Introduction

In this tutorial we learn how to install libtelnet2 on Debian 11.

What is libtelnet2

libtelnet2 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 the libtelnet shared library.

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

Install libtelnet2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libtelnet2

Install libtelnet2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtelnet2

Install libtelnet2 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libtelnet2

How To Uninstall libtelnet2 on Debian 11

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

sudo apt-get remove libtelnet2

Uninstall libtelnet2 And Its Dependencies

To uninstall libtelnet2 and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libtelnet2

Remove libtelnet2 Configurations and Data

To remove libtelnet2 configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libtelnet2

Remove libtelnet2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtelnet2

Dependencies

libtelnet2 have the following dependencies:

References

Summary

In this tutorial we learn how to install libtelnet2 package on Debian 11 using different package management tools: apt, apt-get and aptitude.