How To Install libauth-yubikey-webclient-perl on Debian 9

In this tutorial we learn how to install libauth-yubikey-webclient-perl on Debian 9. libauth-yubikey-webclient-perl is Perl module to authenticate a Yubikey against the Yubico Web API

Introduction

In this tutorial we learn how to install libauth-yubikey-webclient-perl on Debian 9.

What is libauth-yubikey-webclient-perl

libauth-yubikey-webclient-perl is:

Auth::Yubikey_WebClient is a Perl module to validate a Yubikey one-time password against the public Yubico Web API. Yubikeys are hardware authentication devices produced by yubico.com, which support different one-time password and two-factor authentication protocols as well as PGP cryptography.

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

Install libauth-yubikey-webclient-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 libauth-yubikey-webclient-perl using apt-get by running the following command:

sudo apt-get -y install libauth-yubikey-webclient-perl

Install libauth-yubikey-webclient-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libauth-yubikey-webclient-perl using apt by running the following command:

sudo apt -y install libauth-yubikey-webclient-perl

Install libauth-yubikey-webclient-perl 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 libauth-yubikey-webclient-perl using aptitude by running the following command:

sudo aptitude -y install libauth-yubikey-webclient-perl

How To Uninstall libauth-yubikey-webclient-perl on Debian 9

To uninstall only the libauth-yubikey-webclient-perl package we can use the following command:

sudo apt-get remove libauth-yubikey-webclient-perl

Uninstall libauth-yubikey-webclient-perl And Its Dependencies

To uninstall libauth-yubikey-webclient-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libauth-yubikey-webclient-perl

Remove libauth-yubikey-webclient-perl Configurations and Data

To remove libauth-yubikey-webclient-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libauth-yubikey-webclient-perl

Remove libauth-yubikey-webclient-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libauth-yubikey-webclient-perl

Dependencies

libauth-yubikey-webclient-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libauth-yubikey-webclient-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.