How To Install opencryptoki-libs on Rocky Linux 8

In this tutorial we learn how to install opencryptoki-libs on Rocky Linux 8. opencryptoki-libs is The run-time libraries for opencryptoki package

Introduction

In this tutorial we learn how to install opencryptoki-libs on Rocky Linux 8.

What is opencryptoki-libs

Opencryptoki implements the PKCS#11 specification v2.11 for a set of cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the Trusted Platform Module (TPM) chip. Opencryptoki also brings a software token implementation that can be used without any cryptographic hardware. This package contains the PKCS#11 library implementation, and requires at least one token implementation (packaged separately) to be fully functional.

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

Install opencryptoki-libs 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 opencryptoki-libs using dnf by running the following command:

sudo dnf -y install opencryptoki-libs

Install opencryptoki-libs 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 opencryptoki-libs using yum by running the following command:

sudo yum -y install opencryptoki-libs

How To Uninstall opencryptoki-libs on Rocky Linux 8

To uninstall only the opencryptoki-libs package we can use the following command:

sudo dnf remove opencryptoki-libs

opencryptoki-libs Package Contents on Rocky Linux 8

/etc/ld.so.conf.d/opencryptoki-i686.conf
/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/0577d8afaefeb82a3b82c39eb52f1b95253d4d
/usr/lib/opencryptoki
/usr/lib/opencryptoki/PKCS11_API.so
/usr/lib/opencryptoki/libopencryptoki.so
/usr/lib/opencryptoki/libopencryptoki.so.0
/usr/lib/opencryptoki/libopencryptoki.so.0.0.0
/usr/lib/opencryptoki/stdll
/usr/lib/pkcs11
/usr/lib/pkcs11/PKCS11_API.so
/usr/lib/pkcs11/libopencryptoki.so
/usr/lib/pkcs11/stdll
/usr/share/licenses/opencryptoki-libs
/usr/share/licenses/opencryptoki-libs/LICENSE
/usr/share/p11-kit
/usr/share/p11-kit/modules
/usr/share/p11-kit/modules/opencryptoki.module
/etc/ld.so.conf.d/opencryptoki-x86_64.conf
/usr/lib/.build-id
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/502555008b20713eaddb71a83bf2682fa00546
/usr/lib64/opencryptoki
/usr/lib64/opencryptoki/PKCS11_API.so
/usr/lib64/opencryptoki/libopencryptoki.so
/usr/lib64/opencryptoki/libopencryptoki.so.0
/usr/lib64/opencryptoki/libopencryptoki.so.0.0.0
/usr/lib64/opencryptoki/stdll
/usr/lib64/pkcs11
/usr/lib64/pkcs11/PKCS11_API.so
/usr/lib64/pkcs11/libopencryptoki.so
/usr/lib64/pkcs11/stdll
/usr/share/licenses/opencryptoki-libs
/usr/share/licenses/opencryptoki-libs/LICENSE
/usr/share/p11-kit
/usr/share/p11-kit/modules
/usr/share/p11-kit/modules/opencryptoki.module

References

Summary

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