How To Install tpm-tools-pkcs11 on CentOS 8
Introduction
In this tutorial we learn how to install tpm-tools-pkcs11
on CentOS 8.
What is tpm-tools-pkcs11
tpm-tools-pkcs11 is a group of tools that use the TPM PKCS#11 token. All data contained in the PKCS#11 data store is protected by the TPM (keys, certificates, etc.). You can import keys and certificates, list out the objects in the data store, and protect data.
We can use yum
or dnf
to install tpm-tools-pkcs11
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install tpm-tools-pkcs11.
Install tpm-tools-pkcs11 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-pkcs11
using dnf
by running the following command:
sudo dnf -y install tpm-tools-pkcs11
Install tpm-tools-pkcs11 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-pkcs11
using yum
by running the following command:
sudo yum -y install tpm-tools-pkcs11
How To Uninstall tpm-tools-pkcs11 on CentOS 8
To uninstall only the tpm-tools-pkcs11
package we can use the following command:
sudo dnf remove tpm-tools-pkcs11
tpm-tools-pkcs11 Package Contents on CentOS 8
/usr/bin/tpmtoken_import
/usr/bin/tpmtoken_init
/usr/bin/tpmtoken_objects
/usr/bin/tpmtoken_protect
/usr/bin/tpmtoken_setpasswd
/usr/lib/.build-id
/usr/lib/.build-id/19/a886874322ec97c66d84755469ce9db92fa80d
/usr/lib/.build-id/56
/usr/lib/.build-id/56/2040870ae53f16ef8276058b6f03a4095f7170
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/238d067976a80116a90ea00682bbba02bb4948
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/46b589e00e562e0eb1e8c1447bf32bfe6a94f7
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/64a0f60feaee7c88170d4bba6f170af789158d
/usr/share/licenses/tpm-tools-pkcs11
/usr/share/licenses/tpm-tools-pkcs11/LICENSE
/usr/share/man/man1/tpmtoken_import.1.gz
/usr/share/man/man1/tpmtoken_init.1.gz
/usr/share/man/man1/tpmtoken_objects.1.gz
/usr/share/man/man1/tpmtoken_protect.1.gz
/usr/share/man/man1/tpmtoken_setpasswd.1.gz
References
Summary
In this tutorial we learn how to install tpm-tools-pkcs11
on CentOS 8 using yum and dnf.