How To Install libyubikey on Rocky Linux 8

In this tutorial we learn how to install libyubikey on Rocky Linux 8. libyubikey is C library for decrypting and parsing Yubikey One-time passwords

Introduction

In this tutorial we learn how to install libyubikey on Rocky Linux 8.

What is libyubikey

This package holds a low-level C software development kit for the Yubico authentication device, the Yubikey.

We can use yum or dnf to install libyubikey on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libyubikey.

Install libyubikey on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libyubikey using dnf by running the following command:

sudo dnf -y install libyubikey

Install libyubikey on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libyubikey using yum by running the following command:

sudo yum -y install libyubikey

How To Uninstall libyubikey on Rocky Linux 8

To uninstall only the libyubikey package we can use the following command:

sudo dnf remove libyubikey

libyubikey Package Contents on Rocky Linux 8

/usr/bin/modhex
/usr/bin/ykgenerate
/usr/bin/ykparse
/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/3ba68b872e88a3d9609a619eef4e0dc93be1be
/usr/lib/.build-id/af
/usr/lib/.build-id/af/ab7b15a106c2631b3d981dd4a80b1c72c94804
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/d66ed7fad8ee19fd7fc7cf652613c9479d4d41
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/3cf204c242e64b46ceb83edf2e8ce6bf5a4ad7
/usr/lib64/libyubikey.so.0
/usr/lib64/libyubikey.so.0.1.7
/usr/share/doc/libyubikey
/usr/share/doc/libyubikey/AUTHORS
/usr/share/doc/libyubikey/ChangeLog
/usr/share/doc/libyubikey/NEWS
/usr/share/doc/libyubikey/README
/usr/share/licenses/libyubikey
/usr/share/licenses/libyubikey/COPYING
/usr/share/man/man1/modhex.1.gz
/usr/share/man/man1/ykgenerate.1.gz
/usr/share/man/man1/ykparse.1.gz

References

Summary

In this tutorial we learn how to install libyubikey on Rocky Linux 8 using yum and dnf.