How To Install dynalogin-client-php on Ubuntu 18.04

In this tutorial we learn how to install dynalogin-client-php on Ubuntu 18.04. dynalogin-client-php is two-factor HOTP/TOTP authentication - PHP client

Introduction

In this tutorial we learn how to install dynalogin-client-php on Ubuntu 18.04.

What is dynalogin-client-php

dynalogin-client-php is:

dynalogin is a two-factor authentication framework based on the HOTP/TOTP (Open Authentication) algorithm. Dynalogin can store credentials in any database supported by UNIXODBC, which makes the solution robust and scalable. It can also store credentials in flat files if desired. dynalogin has been successfully integrated in solutions for OpenID, making it possible to use two-factor authentication with hundreds of other web applications and public web sites. There is a dynalogin soft-token for Android and it also works with Google Authenticator.

This package provides a PHP client for the dynalogin server. It allows PHP applications to validate a user login attempt. It is intended as a foundation for login forms, OpenID providers and similar code.

There are three methods to install dynalogin-client-php on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install dynalogin-client-php Using apt-get

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

sudo apt-get update

After updating apt database, We can install dynalogin-client-php using apt-get by running the following command:

sudo apt-get -y install dynalogin-client-php

Install dynalogin-client-php Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dynalogin-client-php using apt by running the following command:

sudo apt -y install dynalogin-client-php

Install dynalogin-client-php 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install dynalogin-client-php using aptitude by running the following command:

sudo aptitude -y install dynalogin-client-php

How To Uninstall dynalogin-client-php on Ubuntu 18.04

To uninstall only the dynalogin-client-php package we can use the following command:

sudo apt-get remove dynalogin-client-php

Uninstall dynalogin-client-php And Its Dependencies

To uninstall dynalogin-client-php and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove dynalogin-client-php

Remove dynalogin-client-php Configurations and Data

To remove dynalogin-client-php configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dynalogin-client-php

Remove dynalogin-client-php configuration, data, and all of its dependencies

We can use the following command to remove dynalogin-client-php configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dynalogin-client-php

References

Summary

In this tutorial we learn how to install dynalogin-client-php package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.