How To Install protobuf.i686 on Amazon Linux 2

In this tutorial we learn how to install protobuf.i686 in Amazon Linux 2. protobuf.i686 is Protocol Buffers - Google’s data interchange format

Introduction

In this tutorial we learn how to install protobuf.i686 on Amazon Linux 2.

What is protobuf.i686

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats. Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. You can even update your data structure without breaking deployed programs that are compiled against the “old” format.

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

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

sudo yum -y install protobuf.i686

How To Uninstall protobuf.i686 on Amazon Linux 2

To uninstall only the protobuf.i686 package we can use the following command:

sudo yum remove protobuf.i686

protobuf.i686 Package Contents on Amazon Linux 2

/usr/lib/libprotobuf.so.8
/usr/lib/libprotobuf.so.8.0.0
/usr/share/doc/protobuf-2.5.0
/usr/share/doc/protobuf-2.5.0/CHANGES.txt
/usr/share/doc/protobuf-2.5.0/CONTRIBUTORS.txt
/usr/share/doc/protobuf-2.5.0/COPYING.txt
/usr/share/doc/protobuf-2.5.0/README.txt

References

Summary

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