How To Install cryptsetup on Fedora 34

cryptsetup is Utility for setting up encrypted disks

Introduction

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

What is cryptsetup

The cryptsetup package contains a utility for setting up disk encryption using dm-crypt kernel module.

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

Install cryptsetup 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 cryptsetup using dnf by running the following command:

sudo dnf -y install cryptsetup

Install cryptsetup 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 cryptsetup using yum by running the following command:

sudo yum -y install cryptsetup

How To Uninstall cryptsetup on Fedora 34

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

sudo dnf remove cryptsetup

cryptsetup Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/57b71a332c4e10ab1e3c130e53a651285e9066
/usr/sbin/cryptsetup
/usr/share/doc/cryptsetup
/usr/share/doc/cryptsetup/AUTHORS
/usr/share/doc/cryptsetup/FAQ
/usr/share/doc/cryptsetup/v1.0.7-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.2.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.3.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.3.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.5.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.5.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.4-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.5-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.6-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.7-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.8-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.4-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.5-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.3-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.4-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.5-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.6-ReleaseNotes
/usr/share/doc/cryptsetup/v2.1.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.3-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.4-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.5-ReleaseNotes
/usr/share/licenses/cryptsetup
/usr/share/licenses/cryptsetup/COPYING
/usr/share/man/man8/cryptsetup.8.gz
/usr/lib/.build-id
/usr/lib/.build-id/df
/usr/lib/.build-id/df/86e582202d37bd40435e9056a69426ee629c6a
/usr/sbin/cryptsetup
/usr/share/doc/cryptsetup
/usr/share/doc/cryptsetup/AUTHORS
/usr/share/doc/cryptsetup/FAQ
/usr/share/doc/cryptsetup/v1.0.7-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.1.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.2.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.3.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.3.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.4.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.5.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.5.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.4-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.5-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.6-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.7-ReleaseNotes
/usr/share/doc/cryptsetup/v1.6.8-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.0-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.1-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.2-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.3-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.4-ReleaseNotes
/usr/share/doc/cryptsetup/v1.7.5-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.3-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.4-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.5-ReleaseNotes
/usr/share/doc/cryptsetup/v2.0.6-ReleaseNotes
/usr/share/doc/cryptsetup/v2.1.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.2.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.0-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.1-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.2-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.3-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.4-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.5-ReleaseNotes
/usr/share/doc/cryptsetup/v2.3.6-ReleaseNotes
/usr/share/licenses/cryptsetup
/usr/share/licenses/cryptsetup/COPYING
/usr/share/man/man8/cryptsetup.8.gz

References

Summary

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