How To Install clevis on Fedora 34

clevis is Automated decryption framework

Introduction

In this tutorial we learn how to install clevis on Fedora 34.

What is clevis

Clevis is a framework for automated decryption. It allows you to encrypt data using sophisticated unlocking policies which enable decryption to occur automatically. The clevis package provides basic encryption/decryption policy support. Users can use this directly; but most commonly, it will be used as a building block for other packages. For example, see the clevis-luks and clevis-dracut packages for automatic root volume unlocking of LUKSv1 volumes during early boot.

We can use yum or dnf to install clevis on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install clevis.

Install clevis on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install clevis using dnf by running the following command:

sudo dnf -y install clevis

Install clevis on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install clevis using yum by running the following command:

sudo yum -y install clevis

How To Uninstall clevis on Fedora 34

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

sudo dnf remove clevis

clevis Package Contents on Fedora 34

/usr/bin/clevis
/usr/bin/clevis-decrypt
/usr/bin/clevis-decrypt-sss
/usr/bin/clevis-decrypt-tang
/usr/bin/clevis-decrypt-tpm2
/usr/bin/clevis-encrypt-sss
/usr/bin/clevis-encrypt-tang
/usr/bin/clevis-encrypt-tpm2
/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/2d413885518559f7f7bf86115507553c6d800a
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/b6feb635306fb54c46917ea1e14e1edbe2488e
/usr/lib/sysusers.d/clevis.conf
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/clevis
/usr/share/licenses/clevis
/usr/share/licenses/clevis/COPYING
/usr/share/man/man1/clevis-decrypt.1.gz
/usr/share/man/man1/clevis-encrypt-sss.1.gz
/usr/share/man/man1/clevis-encrypt-tang.1.gz
/usr/share/man/man1/clevis-encrypt-tpm2.1.gz
/usr/share/man/man1/clevis.1.gz
/usr/bin/clevis
/usr/bin/clevis-decrypt
/usr/bin/clevis-decrypt-sss
/usr/bin/clevis-decrypt-tang
/usr/bin/clevis-decrypt-tpm2
/usr/bin/clevis-encrypt-sss
/usr/bin/clevis-encrypt-tang
/usr/bin/clevis-encrypt-tpm2
/usr/lib/.build-id
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/ddb2d14a5101db695940f82e6bc4e87eace735
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/a979e9daa7cf6fc319e9f59109db55571eb958
/usr/lib/sysusers.d/clevis.conf
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/clevis
/usr/share/licenses/clevis
/usr/share/licenses/clevis/COPYING
/usr/share/man/man1/clevis-decrypt.1.gz
/usr/share/man/man1/clevis-encrypt-sss.1.gz
/usr/share/man/man1/clevis-encrypt-tang.1.gz
/usr/share/man/man1/clevis-encrypt-tpm2.1.gz
/usr/share/man/man1/clevis.1.gz

References

Summary

In this tutorial we learn how to install clevis on Fedora 34 using yum and dnf.