How To Install python3-osrf-pycommon on AlmaLinux 8

In this tutorial we learn how to install python3-osrf-pycommon in AlmaLinux 8. python3-osrf-pycommon is API Documentation for the osrf_pycommon Python modules

Introduction

In this tutorial we learn how to install python3-osrf-pycommon on AlmaLinux 8.

What is python3-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 python3-osrf-pycommon on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-osrf-pycommon.

Install python3-osrf-pycommon on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-osrf-pycommon

Install python3-osrf-pycommon on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-osrf-pycommon

How To Uninstall python3-osrf-pycommon on AlmaLinux 8

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

sudo dnf remove python3-osrf-pycommon

References

Summary

In this tutorial we learn how to install python3-osrf-pycommon on AlmaLinux 8 using yum and dnf.