How To Install libnet-telnet-perl on Kali Linux

In this tutorial we learn how to install libnet-telnet-perl on Kali Linux. libnet-telnet-perl is Perl module to script telnetable connections

Introduction

In this tutorial we learn how to install libnet-telnet-perl on Kali Linux.

What is libnet-telnet-perl

libnet-telnet-perl is:

Net::Telnet allows you to make client connections to a TCP port and do network I/O, especially to a port using the TELNET protocol. Simple I/O methods such as print, get, and getline are provided. More sophisticated interactive features are provided because connecting to a TELNET port ultimately means communicating with a program designed for human interaction. These interactive features include the ability to specify a timeout and to wait for patterns to appear in the input stream, such as the prompt from a shell.

There are three methods to install libnet-telnet-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnet-telnet-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libnet-telnet-perl

Install libnet-telnet-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnet-telnet-perl using apt by running the following command:

sudo apt -y install libnet-telnet-perl

Install libnet-telnet-perl Using aptitude

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

sudo aptitude update

After updating apt database, We can install libnet-telnet-perl using aptitude by running the following command:

sudo aptitude -y install libnet-telnet-perl

How To Uninstall libnet-telnet-perl on Kali Linux

To uninstall only the libnet-telnet-perl package we can use the following command:

sudo apt-get remove libnet-telnet-perl

Uninstall libnet-telnet-perl And Its Dependencies

To uninstall libnet-telnet-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libnet-telnet-perl

Remove libnet-telnet-perl Configurations and Data

To remove libnet-telnet-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libnet-telnet-perl

Remove libnet-telnet-perl configuration, data, and all of its dependencies

We can use the following command to remove libnet-telnet-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnet-telnet-perl

Dependencies

libnet-telnet-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libnet-telnet-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.