How To Install tpm2-tools.x86_64 on Amazon Linux 2

In this tutorial we learn how to install tpm2-tools.x86_64 in Amazon Linux 2. tpm2-tools.x86_64 is A TPM2.0 testing tool build upon TPM2.0-TSS

Introduction

In this tutorial we learn how to install tpm2-tools.x86_64 on Amazon Linux 2.

What is tpm2-tools.x86_64

tpm2-tools is a batch of testing tools for tpm2.0. It is based on tpm2-tss.

We can use yum to install tpm2-tools.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install tpm2-tools.x86_64.

Install tpm2-tools.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install tpm2-tools.x86_64 using yum by running the following command:

sudo yum -y install tpm2-tools.x86_64

How To Uninstall tpm2-tools.x86_64 on Amazon Linux 2

To uninstall only the tpm2-tools.x86_64 package we can use the following command:

sudo yum remove tpm2-tools.x86_64

tpm2-tools.x86_64 Package Contents on Amazon Linux 2

/usr/bin/tpm2_activatecredential
/usr/bin/tpm2_certify
/usr/bin/tpm2_create
/usr/bin/tpm2_createpolicy
/usr/bin/tpm2_createprimary
/usr/bin/tpm2_dictionarylockout
/usr/bin/tpm2_encryptdecrypt
/usr/bin/tpm2_evictcontrol
/usr/bin/tpm2_getcap
/usr/bin/tpm2_getmanufec
/usr/bin/tpm2_getpubak
/usr/bin/tpm2_getpubek
/usr/bin/tpm2_getrandom
/usr/bin/tpm2_hash
/usr/bin/tpm2_hmac
/usr/bin/tpm2_listpersistent
/usr/bin/tpm2_load
/usr/bin/tpm2_loadexternal
/usr/bin/tpm2_makecredential
/usr/bin/tpm2_nvdefine
/usr/bin/tpm2_nvlist
/usr/bin/tpm2_nvread
/usr/bin/tpm2_nvreadlock
/usr/bin/tpm2_nvrelease
/usr/bin/tpm2_nvwrite
/usr/bin/tpm2_pcrevent
/usr/bin/tpm2_pcrextend
/usr/bin/tpm2_pcrlist
/usr/bin/tpm2_quote
/usr/bin/tpm2_rc_decode
/usr/bin/tpm2_readpublic
/usr/bin/tpm2_rsadecrypt
/usr/bin/tpm2_rsaencrypt
/usr/bin/tpm2_send
/usr/bin/tpm2_sign
/usr/bin/tpm2_startup
/usr/bin/tpm2_takeownership
/usr/bin/tpm2_unseal
/usr/bin/tpm2_verifysignature
/usr/share/doc/tpm2-tools-3.0.1
/usr/share/doc/tpm2-tools-3.0.1/CHANGELOG.md
/usr/share/doc/tpm2-tools-3.0.1/README.md
/usr/share/licenses/tpm2-tools-3.0.1
/usr/share/licenses/tpm2-tools-3.0.1/LICENSE
/usr/share/man/man1/tpm2_activatecredential.1.gz
/usr/share/man/man1/tpm2_certify.1.gz
/usr/share/man/man1/tpm2_create.1.gz
/usr/share/man/man1/tpm2_createpolicy.1.gz
/usr/share/man/man1/tpm2_createprimary.1.gz
/usr/share/man/man1/tpm2_dictionarylockout.1.gz
/usr/share/man/man1/tpm2_encryptdecrypt.1.gz
/usr/share/man/man1/tpm2_evictcontrol.1.gz
/usr/share/man/man1/tpm2_getcap.1.gz
/usr/share/man/man1/tpm2_getmanufec.1.gz
/usr/share/man/man1/tpm2_getpubak.1.gz
/usr/share/man/man1/tpm2_getpubek.1.gz
/usr/share/man/man1/tpm2_getrandom.1.gz
/usr/share/man/man1/tpm2_hash.1.gz
/usr/share/man/man1/tpm2_hmac.1.gz
/usr/share/man/man1/tpm2_listpersistent.1.gz
/usr/share/man/man1/tpm2_load.1.gz
/usr/share/man/man1/tpm2_loadexternal.1.gz
/usr/share/man/man1/tpm2_makecredential.1.gz
/usr/share/man/man1/tpm2_nvdefine.1.gz
/usr/share/man/man1/tpm2_nvlist.1.gz
/usr/share/man/man1/tpm2_nvread.1.gz
/usr/share/man/man1/tpm2_nvreadlock.1.gz
/usr/share/man/man1/tpm2_nvrelease.1.gz
/usr/share/man/man1/tpm2_nvwrite.1.gz
/usr/share/man/man1/tpm2_pcrevent.1.gz
/usr/share/man/man1/tpm2_pcrextend.1.gz
/usr/share/man/man1/tpm2_pcrlist.1.gz
/usr/share/man/man1/tpm2_quote.1.gz
/usr/share/man/man1/tpm2_rc_decode.1.gz
/usr/share/man/man1/tpm2_readpublic.1.gz
/usr/share/man/man1/tpm2_rsadecrypt.1.gz
/usr/share/man/man1/tpm2_rsaencrypt.1.gz
/usr/share/man/man1/tpm2_send.1.gz
/usr/share/man/man1/tpm2_sign.1.gz
/usr/share/man/man1/tpm2_startup.1.gz
/usr/share/man/man1/tpm2_takeownership.1.gz
/usr/share/man/man1/tpm2_unseal.1.gz
/usr/share/man/man1/tpm2_verifysignature.1.gz

References

Summary

In this tutorial we learn how to install tpm2-tools.x86_64 on Amazon Linux 2 using yum.