How To Install protobuf-c.i686 on Amazon Linux 2

In this tutorial we learn how to install protobuf-c.i686 in Amazon Linux 2. protobuf-c.i686 is C bindings for Google’s Protocol Buffers

Introduction

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

What is protobuf-c.i686

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. This package provides a code generator and run-time libraries to use Protocol Buffers from pure C (not C++).

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

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

sudo yum -y install protobuf-c.i686

How To Uninstall protobuf-c.i686 on Amazon Linux 2

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

sudo yum remove protobuf-c.i686

protobuf-c.i686 Package Contents on Amazon Linux 2

/usr/lib/libprotobuf-c.so.1
/usr/lib/libprotobuf-c.so.1.0.0
/usr/share/doc/protobuf-c-1.0.2
/usr/share/doc/protobuf-c-1.0.2/ChangeLog
/usr/share/doc/protobuf-c-1.0.2/LICENSE
/usr/share/doc/protobuf-c-1.0.2/TODO

References

Summary

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