How To Install clevis-tpm2 on Ubuntu 20.04

In this tutorial we learn how to install clevis-tpm2 on Ubuntu 20.04. clevis-tpm2 is automated encryption framework, TPM2 support automated encryption framework, TPM2 support

Introduction

In this tutorial we learn how to install clevis-tpm2 on Ubuntu 20.04.

What is clevis-tpm2

clevis-tpm2 is:

Clevis is a plugable framework for automated decryption. It can be used to provide automated decryption of data or even automated unlocking of LUKS volumes.

This package provides the TPM2 pin.

Package: clevis-tpm2 Architecture: amd64 Version: 12-1ubuntu2 Priority: optional Section: universe/net Source: clevis Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Christoph Biedl [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 27 Depends: clevis, tpm2-tools Recommends: cryptsetup-bin Filename: pool/universe/c/clevis/clevis-tpm2_12-1ubuntu2_amd64.deb Size: 6984 MD5sum: a1eca322253e13557b6abec5f01e40d1 SHA1: dce8711f62c193f399f6e818d9f3469b036d7554 SHA256: 4bf3d19ff02c53cfb5c67609b2abe4e9e6e863cd6559a02a26f164ffb5030ee8 Homepage: https://github.com/latchset/clevis Description-en: automated encryption framework, TPM2 support Clevis is a plugable framework for automated decryption. It can be used to provide automated decryption of data or even automated unlocking of LUKS volumes.

This package provides the TPM2 pin.

There are three methods to install clevis-tpm2 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install clevis-tpm2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install clevis-tpm2 using apt-get by running the following command:

sudo apt-get -y install clevis-tpm2

Install clevis-tpm2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install clevis-tpm2 using apt by running the following command:

sudo apt -y install clevis-tpm2

Install clevis-tpm2 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install clevis-tpm2 using aptitude by running the following command:

sudo aptitude -y install clevis-tpm2

How To Uninstall clevis-tpm2 on Ubuntu 20.04

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

sudo apt-get remove clevis-tpm2

Uninstall clevis-tpm2 And Its Dependencies

To uninstall clevis-tpm2 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove clevis-tpm2

Remove clevis-tpm2 Configurations and Data

To remove clevis-tpm2 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge clevis-tpm2

Remove clevis-tpm2 configuration, data, and all of its dependencies

We can use the following command to remove clevis-tpm2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge clevis-tpm2

References

Summary

In this tutorial we learn how to install clevis-tpm2 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.