How To Install protobuf-python.x86_64 on Amazon Linux 2

In this tutorial we learn how to install protobuf-python.x86_64 in Amazon Linux 2. protobuf-python.x86_64 is Python bindings for Google Protocol Buffers

Introduction

In this tutorial we learn how to install protobuf-python.x86_64 on Amazon Linux 2.

What is protobuf-python.x86_64

This package contains Python libraries for Google Protocol Buffers

We can use yum to install protobuf-python.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install protobuf-python.x86_64.

Install protobuf-python.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install protobuf-python.x86_64

How To Uninstall protobuf-python.x86_64 on Amazon Linux 2

To uninstall only the protobuf-python.x86_64 package we can use the following command:

sudo yum remove protobuf-python.x86_64

protobuf-python.x86_64 Package Contents on Amazon Linux 2

/usr/lib/python2.7/site-packages/google
/usr/lib/python2.7/site-packages/google/protobuf
/usr/lib/python2.7/site-packages/google/protobuf/__init__.py
/usr/lib/python2.7/site-packages/google/protobuf/__init__.pyc
/usr/lib/python2.7/site-packages/google/protobuf/__init__.pyo
/usr/lib/python2.7/site-packages/google/protobuf/compiler
/usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.py
/usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.pyc
/usr/lib/python2.7/site-packages/google/protobuf/compiler/__init__.pyo
/usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.py
/usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.pyc
/usr/lib/python2.7/site-packages/google/protobuf/compiler/plugin_pb2.pyo
/usr/lib/python2.7/site-packages/google/protobuf/descriptor.py
/usr/lib/python2.7/site-packages/google/protobuf/descriptor.pyc
/usr/lib/python2.7/site-packages/google/protobuf/descriptor.pyo
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.py
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyc
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_database.pyo
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.py
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.pyc
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.pyo
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.py
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyc
/usr/lib/python2.7/site-packages/google/protobuf/descriptor_pool.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal
/usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/__init__.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/api_implementation.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/containers.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/cpp_message.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/encoder.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/enum_type_wrapper.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/message_listener.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyo
/usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.py
/usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.pyc
/usr/lib/python2.7/site-packages/google/protobuf/internal/wire_format.pyo
/usr/lib/python2.7/site-packages/google/protobuf/message.py
/usr/lib/python2.7/site-packages/google/protobuf/message.pyc
/usr/lib/python2.7/site-packages/google/protobuf/message.pyo
/usr/lib/python2.7/site-packages/google/protobuf/message_factory.py
/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyc
/usr/lib/python2.7/site-packages/google/protobuf/message_factory.pyo
/usr/lib/python2.7/site-packages/google/protobuf/reflection.py
/usr/lib/python2.7/site-packages/google/protobuf/reflection.pyc
/usr/lib/python2.7/site-packages/google/protobuf/reflection.pyo
/usr/lib/python2.7/site-packages/google/protobuf/service.py
/usr/lib/python2.7/site-packages/google/protobuf/service.pyc
/usr/lib/python2.7/site-packages/google/protobuf/service.pyo
/usr/lib/python2.7/site-packages/google/protobuf/service_reflection.py
/usr/lib/python2.7/site-packages/google/protobuf/service_reflection.pyc
/usr/lib/python2.7/site-packages/google/protobuf/service_reflection.pyo
/usr/lib/python2.7/site-packages/google/protobuf/text_format.py
/usr/lib/python2.7/site-packages/google/protobuf/text_format.pyc
/usr/lib/python2.7/site-packages/google/protobuf/text_format.pyo
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7-nspkg.pth
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/namespace_packages.txt
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg-info/top_level.txt
/usr/share/doc/protobuf-python-2.5.0
/usr/share/doc/protobuf-python-2.5.0/README.txt
/usr/share/doc/protobuf-python-2.5.0/add_person.py
/usr/share/doc/protobuf-python-2.5.0/addressbook.proto
/usr/share/doc/protobuf-python-2.5.0/list_people.py

References

Summary

In this tutorial we learn how to install protobuf-python.x86_64 on Amazon Linux 2 using yum.