How To Install librdkafka-devel.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install librdkafka-devel.x86_64 on Amazon Linux 2.
What is librdkafka-devel.x86_64
librdkafka is a C/C++ library implementation of the Apache Kafka protocol, containing both Producer and Consumer support. This package contains headers and libraries required to build applications using librdkafka.
We can use yum to install librdkafka-devel.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-devel.x86_64.
Install librdkafka-devel.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-devel.x86_64 using yum by running the following command:
sudo yum -y install librdkafka-devel.x86_64
How To Uninstall librdkafka-devel.x86_64 on Amazon Linux 2
To uninstall only the librdkafka-devel.x86_64 package we can use the following command:
sudo yum remove librdkafka-devel.x86_64
librdkafka-devel.x86_64 Package Contents on Amazon Linux 2
/usr/include/librdkafka
/usr/include/librdkafka/rdkafka.h
/usr/include/librdkafka/rdkafkacpp.h
/usr/lib64/librdkafka++.so
/usr/lib64/librdkafka.so
/usr/lib64/pkgconfig/rdkafka++-static.pc
/usr/lib64/pkgconfig/rdkafka++.pc
/usr/lib64/pkgconfig/rdkafka-static.pc
/usr/lib64/pkgconfig/rdkafka.pc
References
Summary
In this tutorial we learn how to install librdkafka-devel.x86_64 on Amazon Linux 2 using yum.