How To Install python3-hvac on Rocky Linux 8

In this tutorial we learn how to install python3-hvac on Rocky Linux 8. python3-hvac is HashiCorp Vault API client for Python 3

Introduction

In this tutorial we learn how to install python3-hvac on Rocky Linux 8.

What is python3-hvac

This package provides a Python API client for HashiCorp Vault. This is for Python 3.

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

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

sudo dnf -y install python3-hvac

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

sudo yum -y install python3-hvac

How To Uninstall python3-hvac on Rocky Linux 8

To uninstall only the python3-hvac package we can use the following command:

sudo dnf remove python3-hvac

python3-hvac Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/hvac
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/hvac-0.9.5-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/hvac/__init__.py
/usr/lib/python3.6/site-packages/hvac/__pycache__
/usr/lib/python3.6/site-packages/hvac/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/adapters.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/adapters.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/aws_utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/aws_utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/adapters.py
/usr/lib/python3.6/site-packages/hvac/api
/usr/lib/python3.6/site-packages/hvac/api/__init__.py
/usr/lib/python3.6/site-packages/hvac/api/__pycache__
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/vault_api_base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/vault_api_base.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/vault_api_category.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/__pycache__/vault_api_category.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__init__.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/aws.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/aws.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/azure.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/azure.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/gcp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/gcp.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/github.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/github.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/kubernetes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/kubernetes.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/ldap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/ldap.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/mfa.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/mfa.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/okta.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/okta.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/radius.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/__pycache__/radius.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/aws.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/azure.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/gcp.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/github.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/kubernetes.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/ldap.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/mfa.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/okta.py
/usr/lib/python3.6/site-packages/hvac/api/auth_methods/radius.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__init__.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/active_directory.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/active_directory.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/aws.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/aws.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/azure.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/azure.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/consul.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/consul.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/database.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/database.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/gcp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/gcp.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/identity.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/identity.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv_v1.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv_v1.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv_v2.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/kv_v2.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/pki.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/pki.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/transit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/__pycache__/transit.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/active_directory.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/aws.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/azure.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/consul.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/database.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/gcp.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/identity.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/kv.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/kv_v1.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/kv_v2.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/pki.py
/usr/lib/python3.6/site-packages/hvac/api/secrets_engines/transit.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__init__.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/audit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/audit.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/auth.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/auth.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/capabilities.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/capabilities.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/health.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/health.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/init.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/init.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/key.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/key.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/leader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/leader.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/lease.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/lease.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/mount.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/mount.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/namespace.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/namespace.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/policy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/policy.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/seal.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/seal.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/system_backend_mixin.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/system_backend_mixin.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/wrapping.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/__pycache__/wrapping.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/api/system_backend/audit.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/auth.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/capabilities.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/health.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/init.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/key.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/leader.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/lease.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/mount.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/namespace.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/policy.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/seal.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/system_backend_mixin.py
/usr/lib/python3.6/site-packages/hvac/api/system_backend/wrapping.py
/usr/lib/python3.6/site-packages/hvac/api/vault_api_base.py
/usr/lib/python3.6/site-packages/hvac/api/vault_api_category.py
/usr/lib/python3.6/site-packages/hvac/aws_utils.py
/usr/lib/python3.6/site-packages/hvac/constants
/usr/lib/python3.6/site-packages/hvac/constants/__init__.py
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/aws.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/aws.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/azure.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/azure.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/client.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/gcp.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/gcp.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/identity.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/identity.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/ldap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/ldap.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/transit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/constants/__pycache__/transit.cpython-36.pyc
/usr/lib/python3.6/site-packages/hvac/constants/aws.py
/usr/lib/python3.6/site-packages/hvac/constants/azure.py
/usr/lib/python3.6/site-packages/hvac/constants/client.py
/usr/lib/python3.6/site-packages/hvac/constants/gcp.py
/usr/lib/python3.6/site-packages/hvac/constants/identity.py
/usr/lib/python3.6/site-packages/hvac/constants/ldap.py
/usr/lib/python3.6/site-packages/hvac/constants/transit.py
/usr/lib/python3.6/site-packages/hvac/exceptions.py
/usr/lib/python3.6/site-packages/hvac/utils.py
/usr/lib/python3.6/site-packages/hvac/v1
/usr/lib/python3.6/site-packages/hvac/v1/__init__.py
/usr/lib/python3.6/site-packages/hvac/v1/__pycache__
/usr/lib/python3.6/site-packages/hvac/v1/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/hvac/v1/__pycache__/__init__.cpython-36.pyc
/usr/share/doc/python3-hvac
/usr/share/doc/python3-hvac/README.md
/usr/share/licenses/python3-hvac
/usr/share/licenses/python3-hvac/LICENSE.txt

References

Summary

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