How To Install librdkafka.i686 on Amazon Linux 2

In this tutorial we learn how to install librdkafka.i686 in Amazon Linux 2. librdkafka.i686 is The Apache Kafka C library

Introduction

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

What is librdkafka.i686

Librdkafka is a C/C++ library implementation of the Apache Kafka protocol, containing both Producer and Consumer support. It was designed with message delivery reliability and high performance in mind, current figures exceed 800000 messages/second for the producer and 3 million messages/second for the consumer.

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

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

sudo yum -y install librdkafka.i686

How To Uninstall librdkafka.i686 on Amazon Linux 2

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

sudo yum remove librdkafka.i686

librdkafka.i686 Package Contents on Amazon Linux 2

/usr/lib/librdkafka++.so.1
/usr/lib/librdkafka.so.1
/usr/lib/pkgconfig/rdkafka++.pc
/usr/lib/pkgconfig/rdkafka.pc
/usr/share/doc/librdkafka-0.11.4
/usr/share/doc/librdkafka-0.11.4/CONFIGURATION.md
/usr/share/doc/librdkafka-0.11.4/INTRODUCTION.md
/usr/share/doc/librdkafka-0.11.4/README.md
/usr/share/licenses/librdkafka-0.11.4
/usr/share/licenses/librdkafka-0.11.4/LICENSE
/usr/share/licenses/librdkafka-0.11.4/LICENSE.pycrc
/usr/share/licenses/librdkafka-0.11.4/LICENSE.snappy

References

Summary

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