How To Install cryptsetup-reencrypt.x86_64 on Amazon Linux 2

In this tutorial we learn how to install cryptsetup-reencrypt.x86_64 in Amazon Linux 2. cryptsetup-reencrypt.x86_64 is A utility for offline reencryption of LUKS encrypted disks.

Introduction

In this tutorial we learn how to install cryptsetup-reencrypt.x86_64 on Amazon Linux 2.

What is cryptsetup-reencrypt.x86_64

This package contains cryptsetup-reencrypt utility which can be used for offline reencryption of disk in situ. Also includes dracut module required to perform reencryption of device containing a root filesystem.

We can use yum to install cryptsetup-reencrypt.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install cryptsetup-reencrypt.x86_64.

Install cryptsetup-reencrypt.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install cryptsetup-reencrypt.x86_64

How To Uninstall cryptsetup-reencrypt.x86_64 on Amazon Linux 2

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

sudo yum remove cryptsetup-reencrypt.x86_64

cryptsetup-reencrypt.x86_64 Package Contents on Amazon Linux 2

/usr/lib/dracut/modules.d/90reencrypt
/usr/lib/dracut/modules.d/90reencrypt/module-setup.sh
/usr/lib/dracut/modules.d/90reencrypt/parse-reencrypt.sh
/usr/lib/dracut/modules.d/90reencrypt/reencrypt.sh
/usr/sbin/cryptsetup-reencrypt
/usr/share/doc/cryptsetup-reencrypt-1.7.4
/usr/share/doc/cryptsetup-reencrypt-1.7.4/README
/usr/share/licenses/cryptsetup-reencrypt-1.7.4
/usr/share/licenses/cryptsetup-reencrypt-1.7.4/COPYING
/usr/share/man/man8/cryptsetup-reencrypt.8.gz

References

Summary

In this tutorial we learn how to install cryptsetup-reencrypt.x86_64 on Amazon Linux 2 using yum.