How To Install librdkafka.x86_64 on Amazon Linux 2

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

Introduction

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

What is librdkafka.x86_64

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.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install librdkafka.x86_64.

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

sudo yum -y install librdkafka.x86_64

How To Uninstall librdkafka.x86_64 on Amazon Linux 2

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

sudo yum remove librdkafka.x86_64

librdkafka.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/librdkafka++.so.1
/usr/lib64/librdkafka.so.1
/usr/lib64/pkgconfig/rdkafka++.pc
/usr/lib64/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.x86_64 on Amazon Linux 2 using yum.