How To Install protobuf-c-compiler on Rocky Linux 8

In this tutorial we learn how to install protobuf-c-compiler on Rocky Linux 8. protobuf-c-compiler is Protocol Buffers C compiler

Introduction

In this tutorial we learn how to install protobuf-c-compiler on Rocky Linux 8.

What is protobuf-c-compiler

This package contains a modified version of the Protocol Buffers compiler for the C programming language called protoc-c.

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

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

sudo dnf -y install protobuf-c-compiler

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

sudo yum -y install protobuf-c-compiler

How To Uninstall protobuf-c-compiler on Rocky Linux 8

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

sudo dnf remove protobuf-c-compiler

protobuf-c-compiler Package Contents on Rocky Linux 8

/usr/bin/protoc-c
/usr/bin/protoc-gen-c
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/83f315e3ec3b07d4ee243d95e79579df27599b
/usr/bin/protoc-c
/usr/bin/protoc-gen-c
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/89f6bbfe16107aabc8b45ed644bd312f3b893d

References

Summary

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