How To Install tpm-tools on CentOS 8
Introduction
In this tutorial we learn how to install tpm-tools
on CentOS 8.
What is tpm-tools
tpm-tools is a group of tools to manage and utilize the Trusted Computing Group’s TPM hardware. TPM hardware can create, store and use RSA keys securely (without ever being exposed in memory), verify a platform’s software state using cryptographic hashes and more. tpm-tools 1.3.9.2 1.el8 x86_64 195 k tpm-tools-1.3.9.2-1.el8.src.rpm baseos Management tools for the TPM hardware http CPL tpm-tools is a group of tools to manage and utilize the Trusted Computing Group’s TPM hardware. TPM hardware can create, store and use RSA keys securely (without ever being exposed in memory), verify a platform’s software state using cryptographic hashes and more.
We can use yum
or dnf
to install tpm-tools
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install tpm-tools.
Install tpm-tools on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install tpm-tools
using dnf
by running the following command:
sudo dnf -y install tpm-tools
Install tpm-tools on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install tpm-tools
using yum
by running the following command:
sudo yum -y install tpm-tools
How To Uninstall tpm-tools on CentOS 8
To uninstall only the tpm-tools
package we can use the following command:
sudo dnf remove tpm-tools
tpm-tools Package Contents on CentOS 8
/usr/bin/tpm_sealdata
/usr/bin/tpm_unsealdata
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/41198877e8a6e9cb2bfb3914539f75ef180899
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/b3c7cb5cd364d54b30fee470c0c32d692d820c
/usr/lib/.build-id/17
/usr/lib/.build-id/17/d1343647f5f3912631d71087f0c91e7d071c66
/usr/lib/.build-id/19
/usr/lib/.build-id/19/afff583789013a7a24c89d66c83d101ce8cc24
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/52c077d3e98ea016a1731638c0cc4cce758a55
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/1f198f36675efe61bcf51dc571ce1a8520f509
/usr/lib/.build-id/21
/usr/lib/.build-id/21/7574178b5c61d9e15117ad17e196ed15a9b2e4
/usr/lib/.build-id/29
/usr/lib/.build-id/29/3367c103d42be3cfab16f1987c60893ca4e750
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/c9dce7a4dbebfe8e6b0d14ab337822e1afe4a8
/usr/lib/.build-id/49
/usr/lib/.build-id/49/553f9eaa433778758349a41f783a40e04b1841
/usr/lib/.build-id/54
/usr/lib/.build-id/54/8bf80dac1879a2c6344bcd4f0244e35ff88869
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/1e29a66c23011c690d3bd783e6a8671dec004f
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/57b7422c3df58cead188929330cb7bde20ce34
/usr/lib/.build-id/75
/usr/lib/.build-id/75/220fee7de264b4ce90b31066ba7eb309b734a6
/usr/lib/.build-id/77
/usr/lib/.build-id/77/1cbdaecf6edbed2e9276ced119ad649eea5646
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/e98b003ca9fb81c27fe0ca4d29aabdc427058d
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/07d7784730b0e440ea0dd415b50eccd939c613
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/78cf6dc8671f91583a6e6b8235b3638227fc5d
/usr/lib/.build-id/87
/usr/lib/.build-id/87/dd3caed9730a8e0938ea0110848f96e506b4c5
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/1faa7bd85d93a72e21392f08814a39faab9d49
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/8e7de756a2bbb56f2caa4ae6eb9c4b32a78d77
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/95c09587a35b7ab433d9ffd2954e523b38bcdc
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/af7f30010e5f920927e91330d2aadd3fab56ef
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/5345e79d495b2df71f11759aaf749328354b34
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/a96a62462506a15a6e12f8fe064035eb7c52cf
/usr/lib/libtpm_unseal.so.1
/usr/lib/libtpm_unseal.so.1.0.0
/usr/sbin/tpm_changeownerauth
/usr/sbin/tpm_clear
/usr/sbin/tpm_createek
/usr/sbin/tpm_getpubek
/usr/sbin/tpm_nvdefine
/usr/sbin/tpm_nvinfo
/usr/sbin/tpm_nvread
/usr/sbin/tpm_nvrelease
/usr/sbin/tpm_nvwrite
/usr/sbin/tpm_resetdalock
/usr/sbin/tpm_restrictpubek
/usr/sbin/tpm_restrictsrk
/usr/sbin/tpm_revokeek
/usr/sbin/tpm_selftest
/usr/sbin/tpm_setactive
/usr/sbin/tpm_setclearable
/usr/sbin/tpm_setenable
/usr/sbin/tpm_setoperatorauth
/usr/sbin/tpm_setownable
/usr/sbin/tpm_setpresence
/usr/sbin/tpm_takeownership
/usr/sbin/tpm_version
/usr/share/doc/tpm-tools
/usr/share/doc/tpm-tools/README
/usr/share/licenses/tpm-tools
/usr/share/licenses/tpm-tools/LICENSE
/usr/share/man/man1/tpm_sealdata.1.gz
/usr/share/man/man1/tpm_unsealdata.1.gz
/usr/share/man/man1/tpm_version.1.gz
/usr/share/man/man8/tpm_changeownerauth.8.gz
/usr/share/man/man8/tpm_clear.8.gz
/usr/share/man/man8/tpm_createek.8.gz
/usr/share/man/man8/tpm_getpubek.8.gz
/usr/share/man/man8/tpm_nvdefine.8.gz
/usr/share/man/man8/tpm_nvinfo.8.gz
/usr/share/man/man8/tpm_nvread.8.gz
/usr/share/man/man8/tpm_nvrelease.8.gz
/usr/share/man/man8/tpm_nvwrite.8.gz
/usr/share/man/man8/tpm_resetdalock.8.gz
/usr/share/man/man8/tpm_restrictpubek.8.gz
/usr/share/man/man8/tpm_restrictsrk.8.gz
/usr/share/man/man8/tpm_revokeek.8.gz
/usr/share/man/man8/tpm_selftest.8.gz
/usr/share/man/man8/tpm_setactive.8.gz
/usr/share/man/man8/tpm_setclearable.8.gz
/usr/share/man/man8/tpm_setenable.8.gz
/usr/share/man/man8/tpm_setoperatorauth.8.gz
/usr/share/man/man8/tpm_setownable.8.gz
/usr/share/man/man8/tpm_setpresence.8.gz
/usr/share/man/man8/tpm_takeownership.8.gz
/usr/bin/tpm_sealdata
/usr/bin/tpm_unsealdata
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/38433e24cf455c070589992a58a2add0605851
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/541790fc9ad183eabad814b221ef15e8cc3827
/usr/lib/.build-id/25
/usr/lib/.build-id/25/eb862e1f299ff0a2e237a3a0698ad46c8d8b4b
/usr/lib/.build-id/28
/usr/lib/.build-id/28/5779f77368549df28aaf3c619c6db064187d78
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/ba330c56ad77e23d805ab816f406f04b525d82
/usr/lib/.build-id/30
/usr/lib/.build-id/30/24126205054fdf9fa4865ea1f8c66b420af3c3
/usr/lib/.build-id/32
/usr/lib/.build-id/32/8218b6172f70a462fd4301a69fce71034f7f19
/usr/lib/.build-id/43
/usr/lib/.build-id/43/39d8e57290cf3b9b718cd129c52cd9efdcb8d6
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/a627d9421997ecba013d7aff9057d9d568587e
/usr/lib/.build-id/53
/usr/lib/.build-id/53/536d7a62532045aa8af4701dfd8f78626550e3
/usr/lib/.build-id/58
/usr/lib/.build-id/58/1017e457194ff8b293370a9938c20d83bff49c
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/db9d67575b3bbb321681821a32574bbc483252
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/b3de5e113262fc498a380d6a61c350d9577e17
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/2b694c046fb401cabe0673ceeb59d747beb9cd
/usr/lib/.build-id/71
/usr/lib/.build-id/71/f7c0e85cdfc1d8ef3501bcba01f94a3c62ecf1
/usr/lib/.build-id/74
/usr/lib/.build-id/74/69b3471cafd1bd0383f71f3a1b2af77d510577
/usr/lib/.build-id/76
/usr/lib/.build-id/76/c628425b0b880382b0ddd108782c8379090bb5
/usr/lib/.build-id/91
/usr/lib/.build-id/91/f197d9c90e72e280dba694c0b115193c294dce
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/19782970326ee43f119757887ea86233654097
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/3126dc021f7df3528a4150afab73efeac12175
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/bd14d2ea18a8958dd5d1a96ae3a61e075e4fd5
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/9456508b24c59822084d2fdfb162847340b1b3
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/3cb176e7e2316f98009b467d37d4d42fc0e14a
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/3d5c0cebf9f3885751407fe3b14a94d0d29935
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/439165806a36ffbda9ddefbaccecc39de25e66
/usr/lib64/libtpm_unseal.so.1
/usr/lib64/libtpm_unseal.so.1.0.0
/usr/sbin/tpm_changeownerauth
/usr/sbin/tpm_clear
/usr/sbin/tpm_createek
/usr/sbin/tpm_getpubek
/usr/sbin/tpm_nvdefine
/usr/sbin/tpm_nvinfo
/usr/sbin/tpm_nvread
/usr/sbin/tpm_nvrelease
/usr/sbin/tpm_nvwrite
/usr/sbin/tpm_resetdalock
/usr/sbin/tpm_restrictpubek
/usr/sbin/tpm_restrictsrk
/usr/sbin/tpm_revokeek
/usr/sbin/tpm_selftest
/usr/sbin/tpm_setactive
/usr/sbin/tpm_setclearable
/usr/sbin/tpm_setenable
/usr/sbin/tpm_setoperatorauth
/usr/sbin/tpm_setownable
/usr/sbin/tpm_setpresence
/usr/sbin/tpm_takeownership
/usr/sbin/tpm_version
/usr/share/doc/tpm-tools
/usr/share/doc/tpm-tools/README
/usr/share/licenses/tpm-tools
/usr/share/licenses/tpm-tools/LICENSE
/usr/share/man/man1/tpm_sealdata.1.gz
/usr/share/man/man1/tpm_unsealdata.1.gz
/usr/share/man/man1/tpm_version.1.gz
/usr/share/man/man8/tpm_changeownerauth.8.gz
/usr/share/man/man8/tpm_clear.8.gz
/usr/share/man/man8/tpm_createek.8.gz
/usr/share/man/man8/tpm_getpubek.8.gz
/usr/share/man/man8/tpm_nvdefine.8.gz
/usr/share/man/man8/tpm_nvinfo.8.gz
/usr/share/man/man8/tpm_nvread.8.gz
/usr/share/man/man8/tpm_nvrelease.8.gz
/usr/share/man/man8/tpm_nvwrite.8.gz
/usr/share/man/man8/tpm_resetdalock.8.gz
/usr/share/man/man8/tpm_restrictpubek.8.gz
/usr/share/man/man8/tpm_restrictsrk.8.gz
/usr/share/man/man8/tpm_revokeek.8.gz
/usr/share/man/man8/tpm_selftest.8.gz
/usr/share/man/man8/tpm_setactive.8.gz
/usr/share/man/man8/tpm_setclearable.8.gz
/usr/share/man/man8/tpm_setenable.8.gz
/usr/share/man/man8/tpm_setoperatorauth.8.gz
/usr/share/man/man8/tpm_setownable.8.gz
/usr/share/man/man8/tpm_setpresence.8.gz
/usr/share/man/man8/tpm_takeownership.8.gz
References
- [tpm-tools website](http://trousers.sourceforge.net http://trousers.sourceforge.net)
Summary
In this tutorial we learn how to install tpm-tools
on CentOS 8 using yum and dnf.