How To Install tpm2-tss on Rocky Linux 8

In this tutorial we learn how to install tpm2-tss on Rocky Linux 8. tpm2-tss is TPM2.0 Software Stack

Introduction

In this tutorial we learn how to install tpm2-tss on Rocky Linux 8.

What is tpm2-tss

tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system APIs. It sits between TPM driver and applications, providing TPM2.0 specified APIs for applications to access TPM module through kernel TPM drivers.

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

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

sudo dnf -y install tpm2-tss

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

sudo yum -y install tpm2-tss

How To Uninstall tpm2-tss on Rocky Linux 8

To uninstall only the tpm2-tss package we can use the following command:

sudo dnf remove tpm2-tss

tpm2-tss Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/444df612a617c26e750d1fce95cff57a133e54
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/e7dca595bc743eabdac862d7f6ee1d16c692fb
/usr/lib/.build-id/45
/usr/lib/.build-id/45/11dae2af3c18ad9c38ab8eff4ebd0cde3667a2
/usr/lib/.build-id/60
/usr/lib/.build-id/60/6cddbc7e2c7b3ad825d2674475618df362b864
/usr/lib/.build-id/83
/usr/lib/.build-id/83/9a2b2a0fd74a6dcf9d0c9566ee4465dc2f94c7
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/4584d57347836cf0b0a45737cd0b6a1de30466
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/82ade342e81263c716be93e03bb7a44a047699
/usr/lib/udev/rules.d/60-tpm-udev.rules
/usr/lib64/libtss2-esys.so.0
/usr/lib64/libtss2-esys.so.0.0.0
/usr/lib64/libtss2-mu.so.0
/usr/lib64/libtss2-mu.so.0.0.0
/usr/lib64/libtss2-rc.so.0
/usr/lib64/libtss2-rc.so.0.0.0
/usr/lib64/libtss2-sys.so.0
/usr/lib64/libtss2-sys.so.0.0.0
/usr/lib64/libtss2-tcti-device.so.0
/usr/lib64/libtss2-tcti-device.so.0.0.0
/usr/lib64/libtss2-tcti-mssim.so.0
/usr/lib64/libtss2-tcti-mssim.so.0.0.0
/usr/lib64/libtss2-tctildr.so.0
/usr/lib64/libtss2-tctildr.so.0.0.0
/usr/share/doc/tpm2-tss
/usr/share/doc/tpm2-tss/CHANGELOG.md
/usr/share/doc/tpm2-tss/README.md
/usr/share/licenses/tpm2-tss
/usr/share/licenses/tpm2-tss/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/caf02a2c2d865048a5f89745548626fa42011a
/usr/lib/.build-id/44
/usr/lib/.build-id/44/def8f94f0e767b61e811bc2da53481a1038f89
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/e40ce7fc5dcee70ed0f48fefae9ed6f8ecf1ea
/usr/lib/.build-id/82
/usr/lib/.build-id/82/8ebe741acf93f433967c84e044eb47d1cf7467
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/f08de81e7fa900e96fef0aae0b17dd77f666f4
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/a156fdc5e4b293f918be3d991cdfbbccf68012
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/8e26c72e101932cda8d83fd9e3d2527acdc424
/usr/lib/libtss2-esys.so.0
/usr/lib/libtss2-esys.so.0.0.0
/usr/lib/libtss2-mu.so.0
/usr/lib/libtss2-mu.so.0.0.0
/usr/lib/libtss2-rc.so.0
/usr/lib/libtss2-rc.so.0.0.0
/usr/lib/libtss2-sys.so.0
/usr/lib/libtss2-sys.so.0.0.0
/usr/lib/libtss2-tcti-device.so.0
/usr/lib/libtss2-tcti-device.so.0.0.0
/usr/lib/libtss2-tcti-mssim.so.0
/usr/lib/libtss2-tcti-mssim.so.0.0.0
/usr/lib/libtss2-tctildr.so.0
/usr/lib/libtss2-tctildr.so.0.0.0
/usr/lib/udev/rules.d/60-tpm-udev.rules
/usr/share/doc/tpm2-tss
/usr/share/doc/tpm2-tss/CHANGELOG.md
/usr/share/doc/tpm2-tss/README.md
/usr/share/licenses/tpm2-tss
/usr/share/licenses/tpm2-tss/LICENSE

References

Summary

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