How To Install libpass-otp-perl on Debian 12

Learn how to install libpass-otp-perl on Debian 12 with this tutorial. libpass-otp-perl is Perl implementation of HOTP / TOTP algorithms

Introduction

In this tutorial we learn how to install libpass-otp-perl on Debian 12.

What is libpass-otp-perl

libpass-otp-perl is:

The Pass::OTP module provides implementation of HOTP and TOTP algorithms according to the RFC 4226 and RFC 6238.

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

Install libpass-otp-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 libpass-otp-perl using apt-get by running the following command:

sudo apt-get -y install libpass-otp-perl

Install libpass-otp-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpass-otp-perl

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

sudo aptitude -y install libpass-otp-perl

How To Uninstall libpass-otp-perl on Debian 12

To uninstall only the libpass-otp-perl package we can use the following command:

sudo apt-get remove libpass-otp-perl

Uninstall libpass-otp-perl And Its Dependencies

To uninstall libpass-otp-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libpass-otp-perl

Remove libpass-otp-perl Configurations and Data

To remove libpass-otp-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libpass-otp-perl

Remove libpass-otp-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpass-otp-perl

Dependencies

libpass-otp-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libpass-otp-perl package on Debian 12 using different package management tools: apt, apt-get and aptitude.