How To Install python36-osrf-pycommon on CentOS 7

In this tutorial we learn how to install python36-osrf-pycommon on CentOS 7. python36-osrf-pycommon is API Documentation for the osrf_pycommon Python modules

Introduction

In this tutorial we learn how to install python36-osrf-pycommon on CentOS 7.

What is python36-osrf-pycommon

osrf_pycommon is a python package which contains commonly used Python boilerplate code and patterns. Things like ANSI terminal coloring, capturing colored output from programs using sub-process, or even a simple logging system which provides some nice functionality over the built-in Python logging system. The functionality provided here should be generic enough to be reused in arbitrary scenarios and should avoid bringing in dependencies which are not part of the standard Python library. Where possible Windows and Linux/OS X should be supported, and where it cannot it should be gracefully degrading.

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

Install python36-osrf-pycommon on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python36-osrf-pycommon using yum by running the following command:

sudo yum -y install python36-osrf-pycommon

Install python36-osrf-pycommon 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 python36-osrf-pycommon using dnf by running the following command:

sudo dnf -y install python36-osrf-pycommon

How To Uninstall python36-osrf-pycommon on CentOS 7

To uninstall only the python36-osrf-pycommon package we can use the following command:

sudo dnf remove python36-osrf-pycommon

References

Summary

In this tutorial we learn how to install python36-osrf-pycommon on CentOS 7 using yum and dnf.