How To Install python-auth-credential on CentOS 7
Introduction
In this tutorial we learn how to install python-auth-credential
on CentOS 7.
What is python-auth-credential
This module offers an abstraction of a credential, i.e. something that can be used to authenticate. It allows the creation and manipulation of credentials. In particular, it defines a standard string representation (so that credentials can be given to external programs as command line options), a standard structured representation (so that credentials can be stored in structured configuration files or using JSON) and “preparators” that can transform credentials into ready-to-use data for well known targets. The python module auth.credential is compatible with the Perl module Authen
We can use yum
or dnf
to install python-auth-credential
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-auth-credential.
Install python-auth-credential 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-auth-credential
using yum
by running the following command:
sudo yum -y install python-auth-credential
Install python-auth-credential 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-auth-credential
using dnf
by running the following command:
sudo dnf -y install python-auth-credential
How To Uninstall python-auth-credential on CentOS 7
To uninstall only the python-auth-credential
package we can use the following command:
sudo dnf remove python-auth-credential
References
Summary
In this tutorial we learn how to install python-auth-credential
on CentOS 7 using yum
and dnf
.