How To Install cryptsetup-reencrypt on Rocky Linux 8

In this tutorial we learn how to install cryptsetup-reencrypt on Rocky Linux 8. cryptsetup-reencrypt is A utility for offline reencryption of LUKS encrypted disks.

Introduction

In this tutorial we learn how to install cryptsetup-reencrypt on Rocky Linux 8.

What is cryptsetup-reencrypt

This package contains cryptsetup-reencrypt utility which can be used for offline reencryption of disk in situ.

We can use yum or dnf to install cryptsetup-reencrypt on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install cryptsetup-reencrypt.

Install cryptsetup-reencrypt on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install cryptsetup-reencrypt

Install cryptsetup-reencrypt on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install cryptsetup-reencrypt using yum by running the following command:

sudo yum -y install cryptsetup-reencrypt

How To Uninstall cryptsetup-reencrypt on Rocky Linux 8

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

sudo dnf remove cryptsetup-reencrypt

cryptsetup-reencrypt Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/23984eb92619c5eff18b3eb1b7f6af7fa8178f
/usr/sbin/cryptsetup-reencrypt
/usr/share/doc/cryptsetup-reencrypt
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/README
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/check.old
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/install.old
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/module-setup.sh
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/parse-reencrypt.sh
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/reencrypt-verbose.sh
/usr/share/doc/cryptsetup-reencrypt/dracut_90reencrypt/reencrypt.sh
/usr/share/licenses/cryptsetup-reencrypt
/usr/share/licenses/cryptsetup-reencrypt/COPYING
/usr/share/man/man8/cryptsetup-reencrypt.8.gz

References

Summary

In this tutorial we learn how to install cryptsetup-reencrypt on Rocky Linux 8 using yum and dnf.