How To Install python3-protobuf on Fedora 36

In this tutorial we learn how to install python3-protobuf in Fedora 36. python3-protobuf is Python 3 bindings for Google Protocol Buffers

Introduction

In this tutorial we learn how to install python3-protobuf on Fedora 36.

What is python3-protobuf

This package contains Python 3 libraries for Google Protocol Buffers

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

Install python3-protobuf on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-protobuf

Install python3-protobuf on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-protobuf

How To Uninstall python3-protobuf on Fedora 36

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

sudo dnf remove python3-protobuf

python3-protobuf Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/google
/usr/lib/python3.10/site-packages/google/protobuf
/usr/lib/python3.10/site-packages/google/protobuf/__init__.py
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/any_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/any_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/api_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/api_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_database.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_database.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_pool.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/descriptor_pool.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/duration_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/duration_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/empty_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/empty_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/field_mask_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/field_mask_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/json_format.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/json_format.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/message.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/message.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/message_factory.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/message_factory.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/proto_builder.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/proto_builder.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/reflection.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/reflection.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/service.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/service.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/service_reflection.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/service_reflection.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/source_context_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/source_context_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/struct_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/struct_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/symbol_database.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/symbol_database.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/text_encoding.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/text_encoding.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/text_format.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/text_format.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/timestamp_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/timestamp_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/type_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/type_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/wrappers_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/__pycache__/wrappers_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/any_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/api_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/compiler
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__init__.py
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__pycache__
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__pycache__/plugin_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/compiler/__pycache__/plugin_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/compiler/plugin_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/descriptor.py
/usr/lib/python3.10/site-packages/google/protobuf/descriptor_database.py
/usr/lib/python3.10/site-packages/google/protobuf/descriptor_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py
/usr/lib/python3.10/site-packages/google/protobuf/duration_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/empty_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/field_mask_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/internal
/usr/lib/python3.10/site-packages/google/protobuf/internal/__init__.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/api_implementation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/api_implementation.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/containers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/containers.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/decoder.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/decoder.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/encoder.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/encoder.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/enum_type_wrapper.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/enum_type_wrapper.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/extension_dict.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/extension_dict.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/message_listener.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/message_listener.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/python_message.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/python_message.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/type_checkers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/type_checkers.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/well_known_types.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/well_known_types.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/wire_format.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/__pycache__/wire_format.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/internal/api_implementation.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/containers.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/decoder.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/encoder.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/enum_type_wrapper.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/extension_dict.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/message_listener.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/type_checkers.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/well_known_types.py
/usr/lib/python3.10/site-packages/google/protobuf/internal/wire_format.py
/usr/lib/python3.10/site-packages/google/protobuf/json_format.py
/usr/lib/python3.10/site-packages/google/protobuf/message.py
/usr/lib/python3.10/site-packages/google/protobuf/message_factory.py
/usr/lib/python3.10/site-packages/google/protobuf/proto_builder.py
/usr/lib/python3.10/site-packages/google/protobuf/pyext
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__init__.py
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__pycache__
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__pycache__/cpp_message.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/pyext/__pycache__/cpp_message.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/pyext/cpp_message.py
/usr/lib/python3.10/site-packages/google/protobuf/reflection.py
/usr/lib/python3.10/site-packages/google/protobuf/service.py
/usr/lib/python3.10/site-packages/google/protobuf/service_reflection.py
/usr/lib/python3.10/site-packages/google/protobuf/source_context_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/struct_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/symbol_database.py
/usr/lib/python3.10/site-packages/google/protobuf/text_encoding.py
/usr/lib/python3.10/site-packages/google/protobuf/text_format.py
/usr/lib/python3.10/site-packages/google/protobuf/timestamp_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/type_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/util
/usr/lib/python3.10/site-packages/google/protobuf/util/__init__.py
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/json_format_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/json_format_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/json_format_proto3_pb2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/__pycache__/json_format_proto3_pb2.cpython-310.pyc
/usr/lib/python3.10/site-packages/google/protobuf/util/json_format_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/util/json_format_proto3_pb2.py
/usr/lib/python3.10/site-packages/google/protobuf/wrappers_pb2.py
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10-nspkg.pth
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info/namespace_packages.txt
/usr/lib/python3.10/site-packages/protobuf-3.19.4-py3.10.egg-info/top_level.txt
/usr/share/doc/python3-protobuf
/usr/share/doc/python3-protobuf/README.md
/usr/share/doc/python3-protobuf/add_person.py
/usr/share/doc/python3-protobuf/addressbook.proto
/usr/share/doc/python3-protobuf/list_people.py

References

Summary

In this tutorial we learn how to install python3-protobuf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).