How To Install gen-oath-safe on CentOS 7

In this tutorial we learn how to install gen-oath-safe on CentOS 7. gen-oath-safe is Script for generating HOTP/TOTP keys (and QR code)

Introduction

In this tutorial we learn how to install gen-oath-safe on CentOS 7.

What is gen-oath-safe

This script creates appropriate keys and QR codes for setting up custom tokens. It can create TOTP (time based) and HOTP (event based) tokens, and provide textmode QR codes for loading into Google Authenticator. It can also provide the needed commands to prepare a Yubikey. Only use this on a trusted system with an encrypted filesystem. This script was not designed to be used except by experienced users, so it is not terribly user friendly.

We can use yum or dnf to install gen-oath-safe on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install gen-oath-safe.

Install gen-oath-safe on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install gen-oath-safe using yum by running the following command:

sudo yum -y install gen-oath-safe

Install gen-oath-safe on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install gen-oath-safe using dnf by running the following command:

sudo dnf -y install gen-oath-safe

How To Uninstall gen-oath-safe on CentOS 7

To uninstall only the gen-oath-safe package we can use the following command:

sudo dnf remove gen-oath-safe

References

Summary

In this tutorial we learn how to install gen-oath-safe on CentOS 7 using yum and dnf.