How To Install librdkafka on Fedora 34
Introduction
In this tutorial we learn how to install librdkafka
on Fedora 34.
What is librdkafka
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. librdkafka 1.6.1 1.fc34 x86_64 667 k librdkafka-1.6.1-1.fc34.src.rpm fedora The Apache Kafka C library https BSD 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
or dnf
to install librdkafka
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install librdkafka.
Install librdkafka on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install librdkafka
using dnf
by running the following command:
sudo dnf -y install librdkafka
Install librdkafka on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install librdkafka
using yum
by running the following command:
sudo yum -y install librdkafka
How To Uninstall librdkafka on Fedora 34
To uninstall only the librdkafka
package we can use the following command:
sudo dnf remove librdkafka
librdkafka Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/56d28951a4c86815f65aeeb3333b1aba47645e
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/6e641d0d0a7430eae5f17ff9d3ea65f7718f61
/usr/lib/librdkafka++.so.1
/usr/lib/librdkafka.so.1
/usr/share/doc/librdkafka
/usr/share/doc/librdkafka/CHANGELOG.md
/usr/share/doc/librdkafka/CONFIGURATION.md
/usr/share/doc/librdkafka/INTRODUCTION.md
/usr/share/doc/librdkafka/LICENSE
/usr/share/doc/librdkafka/LICENSES.txt
/usr/share/doc/librdkafka/README.md
/usr/share/doc/librdkafka/STATISTICS.md
/usr/share/licenses/librdkafka
/usr/share/licenses/librdkafka/LICENSE
/usr/share/licenses/librdkafka/LICENSE.pycrc
/usr/share/licenses/librdkafka/LICENSE.snappy
/usr/lib/.build-id
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/fee511bd77ced355f889b92f6abbef7b6ac690
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/9548f982dc509b13169a06ba22277767dc7f10
/usr/lib64/librdkafka++.so.1
/usr/lib64/librdkafka.so.1
/usr/share/doc/librdkafka
/usr/share/doc/librdkafka/CHANGELOG.md
/usr/share/doc/librdkafka/CONFIGURATION.md
/usr/share/doc/librdkafka/INTRODUCTION.md
/usr/share/doc/librdkafka/LICENSE
/usr/share/doc/librdkafka/LICENSES.txt
/usr/share/doc/librdkafka/README.md
/usr/share/doc/librdkafka/STATISTICS.md
/usr/share/licenses/librdkafka
/usr/share/licenses/librdkafka/LICENSE
/usr/share/licenses/librdkafka/LICENSE.pycrc
/usr/share/licenses/librdkafka/LICENSE.snappy
References
- [librdkafka website](https://github.com/edenhill/librdkafka https://github.com/edenhill/librdkafka)
Summary
In this tutorial we learn how to install librdkafka
on Fedora 34 using yum and dnf.