How To Install python-SecretStorage on CentOS 7

In this tutorial we learn how to install python-SecretStorage on CentOS 7. python-SecretStorage is Python 2.x module for secure storing of passwords and secrets

Introduction

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

What is python-SecretStorage

This module provides a way for securely storing passwords and other secrets. It uses D-Bus Secret Service API that is supported by GNOME Keyring (>= 2.30) and KSecretsService. The main classes provided are secretstorage.Item, representing a secret item (that has a label, a secret and some attributes) and secretstorage.Collection, a place items are stored in. SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported).

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

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

sudo yum -y install python-SecretStorage

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

sudo dnf -y install python-SecretStorage

How To Uninstall python-SecretStorage on CentOS 7

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

sudo dnf remove python-SecretStorage

References

Summary

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