How To Install python-volume_key on CentOS 7

In this tutorial we learn how to install python-volume_key on CentOS 7. python-volume_key is Python bindings for libvolume_key

Introduction

In this tutorial we learn how to install python-volume_key on CentOS 7.

What is python-volume_key

This package provides Python bindings for libvolume_key, a library for manipulating storage volume encryption keys and storing them separately from volumes. The main goal of the software is to allow restoring access to an encrypted hard drive if the primary user forgets the passphrase. The encryption key back up can also be useful for extracting data after a hardware or software failure that corrupts the header of the encrypted volume, or to access the company data after an employee leaves abruptly. volume_key currently supports only the LUKS volume encryption format. Support for other formats is possible, some formats are planned for future releases.

We can use yum or dnf to install python-volume_key on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-volume_key.

Install python-volume_key on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-volume_key

Install python-volume_key on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install python-volume_key

How To Uninstall python-volume_key on CentOS 7

To uninstall only the python-volume_key package we can use the following command:

sudo dnf remove python-volume_key

References

Summary

In this tutorial we learn how to install python-volume_key on CentOS 7 using yum and dnf.