How To Install python3-pure-protobuf on Rocky Linux 8

In this tutorial we learn how to install python3-pure-protobuf on Rocky Linux 8. python3-pure-protobuf is Python implementation of Protocol Buffers data types with dataclasses support

Introduction

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

What is python3-pure-protobuf

pure-protobuf allows you to take advantages of the standard dataclasses module to define message types. It is preferred over the legacy interface for new projects. The dataclasses interface is available in Python 3.6 and higher. The legacy interface is deprecated and still available via pure_protobuf.legacy. This guide describes how to use pure-protobuf to structure your data. It tries to follow the standard developer guide. It also assumes that you’re familiar with Protocol Buffers.

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

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

sudo dnf -y install python3-pure-protobuf

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

sudo yum -y install python3-pure-protobuf

How To Uninstall python3-pure-protobuf on Rocky Linux 8

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

sudo dnf remove python3-pure-protobuf

python3-pure-protobuf Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/pure_protobuf
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/pure_protobuf-2.0.1-py3.6.egg-info/zip-safe
/usr/lib/python3.6/site-packages/pure_protobuf/__init__.py
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/dataclasses_.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/dataclasses_.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/enums.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/enums.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/fields.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/fields.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/io_.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/__pycache__/io_.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/dataclasses_.py
/usr/lib/python3.6/site-packages/pure_protobuf/enums.py
/usr/lib/python3.6/site-packages/pure_protobuf/fields.py
/usr/lib/python3.6/site-packages/pure_protobuf/io_.py
/usr/lib/python3.6/site-packages/pure_protobuf/serializers
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__init__.py
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__pycache__
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__pycache__/google.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/__pycache__/google.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/serializers/google.py
/usr/lib/python3.6/site-packages/pure_protobuf/types
/usr/lib/python3.6/site-packages/pure_protobuf/types/__init__.py
/usr/lib/python3.6/site-packages/pure_protobuf/types/__pycache__
/usr/lib/python3.6/site-packages/pure_protobuf/types/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/types/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/types/__pycache__/google.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/types/__pycache__/google.cpython-36.pyc
/usr/lib/python3.6/site-packages/pure_protobuf/types/google.py
/usr/share/doc/python3-pure-protobuf
/usr/share/doc/python3-pure-protobuf/README.md
/usr/share/licenses/python3-pure-protobuf
/usr/share/licenses/python3-pure-protobuf/LICENSE

References

Summary

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