How To Install libnet-duo-perl on Kali Linux

In this tutorial we learn how to install libnet-duo-perl on Kali Linux. libnet-duo-perl is Perl API for Duo multifactor authentication service

Introduction

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

What is libnet-duo-perl

libnet-duo-perl is:

Net::Duo provides an object-oriented Perl interface for the Duo Security REST APIs. It attempts to abstract some of the API details and provide an object-oriented view of the returned objects in order to make use of the API in Perl code more natural than dealing with JSON data structures directly. Currently, some parts of the Auth and Admin APIs are implemented alongside with generic methods to call any of the JSON-based APIs.

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

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

Install libnet-duo-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnet-duo-perl

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

sudo aptitude -y install libnet-duo-perl

How To Uninstall libnet-duo-perl on Kali Linux

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

sudo apt-get remove libnet-duo-perl

Uninstall libnet-duo-perl And Its Dependencies

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

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

Remove libnet-duo-perl Configurations and Data

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

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

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

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

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

Dependencies

libnet-duo-perl have the following dependencies:

References

Summary

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