How To Install python-oauth2 on CentOS 7
Introduction
In this tutorial we learn how to install python-oauth2
on CentOS 7.
What is python-oauth2
Oauth2 was originally forked from Leah Culver and Andy Smith’s oauth.py code. Some of the tests come from a fork by Vic Fryzel, while a revamped Request class and more tests were merged in from Mark Paschal’s fork. A number of notable differences exist between this code and its forefathers - 100% unit test coverage. - The DataStore object has been completely ripped out. While creating unit tests for the library I found several substantial bugs with the implementation and confirmed with Andy Smith that it was never fully baked. - Classes are no longer prefixed with OAuth. - The Request class now extends from dict. - The library is likely no longer compatible with Python 2.3. - The Client class works and extends from httplib2. It’s a thin wrapper that handles automatically signing any normal HTTP request you might wish to make.
We can use yum
or dnf
to install python-oauth2
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-oauth2.
Install python-oauth2 on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-oauth2
using yum
by running the following command:
Install python-oauth2 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.
After updating yum database, We can install python-oauth2
using dnf
by running the following command:
How To Uninstall python-oauth2 on CentOS 7
To uninstall only the python-oauth2
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-oauth2
on CentOS 7 using yum
and dnf
.