How To Install yhsm-yubikey-ksm on Ubuntu 18.04

In this tutorial we learn how to install yhsm-yubikey-ksm on Ubuntu 18.04. yhsm-yubikey-ksm is Yubikey Key Storage Module using YubiHSM

Introduction

In this tutorial we learn how to install yhsm-yubikey-ksm on Ubuntu 18.04.

What is yhsm-yubikey-ksm

yhsm-yubikey-ksm is:

Decryption backend for a Yubico validation service. Uses the YubiHSM to decrypt YubiKey OTPs and answer ‘OK’ or ‘ERR’.

This package provides the decryption backend for a Yubico validation service. It uses the YubiHSM to decrypt YubiKey OTPs and answer ‘OK’ or ‘ERR’. The package also contains the yhsm-db-import and yhsm-db-export tools for database management.

There are three methods to install yhsm-yubikey-ksm 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 yhsm-yubikey-ksm Using apt-get

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

sudo apt-get update

After updating apt database, We can install yhsm-yubikey-ksm using apt-get by running the following command:

sudo apt-get -y install yhsm-yubikey-ksm

Install yhsm-yubikey-ksm Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install yhsm-yubikey-ksm using apt by running the following command:

sudo apt -y install yhsm-yubikey-ksm

Install yhsm-yubikey-ksm 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 yhsm-yubikey-ksm using aptitude by running the following command:

sudo aptitude -y install yhsm-yubikey-ksm

How To Uninstall yhsm-yubikey-ksm on Ubuntu 18.04

To uninstall only the yhsm-yubikey-ksm package we can use the following command:

sudo apt-get remove yhsm-yubikey-ksm

Uninstall yhsm-yubikey-ksm And Its Dependencies

To uninstall yhsm-yubikey-ksm and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove yhsm-yubikey-ksm

Remove yhsm-yubikey-ksm Configurations and Data

To remove yhsm-yubikey-ksm configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge yhsm-yubikey-ksm

Remove yhsm-yubikey-ksm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge yhsm-yubikey-ksm

References

Summary

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