How To Install libauthen-oath-perl on Kali Linux

In this tutorial we learn how to install libauthen-oath-perl on Kali Linux. libauthen-oath-perl is Perl module for OATH One Time Passwords

Introduction

In this tutorial we learn how to install libauthen-oath-perl on Kali Linux.

What is libauthen-oath-perl

libauthen-oath-perl is:

Authen::OATH is an implementation of the HOTP and TOTP One Time Password algorithms as defined by OATH (http://www.openauthentication.org).

All necessary parameters are set by default, though these can be overridden. Both totp() and htop() have passed all of the test vectors defined in the RFC documents for TOTP and HOTP.

totp() and hotp() both default to returning 6 digits and using SHA. As such, both can be called by passing only the secret key and a valid OTP will be returned.

There are three methods to install libauthen-oath-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 libauthen-oath-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 libauthen-oath-perl using apt-get by running the following command:

sudo apt-get -y install libauthen-oath-perl

Install libauthen-oath-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libauthen-oath-perl

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

sudo aptitude -y install libauthen-oath-perl

How To Uninstall libauthen-oath-perl on Kali Linux

To uninstall only the libauthen-oath-perl package we can use the following command:

sudo apt-get remove libauthen-oath-perl

Uninstall libauthen-oath-perl And Its Dependencies

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

sudo apt-get -y autoremove libauthen-oath-perl

Remove libauthen-oath-perl Configurations and Data

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

sudo apt-get -y purge libauthen-oath-perl

Remove libauthen-oath-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libauthen-oath-perl

Dependencies

libauthen-oath-perl have the following dependencies:

References

Summary

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