How To Install flatbuffers on Fedora 34

flatbuffers is Memory efficient serialization library Memory efficient serialization library

Introduction

In this tutorial we learn how to install flatbuffers on Fedora 34.

What is flatbuffers

FlatBuffers is a serialization library for games and other memory constrained apps. FlatBuffers allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility. flatbuffers 1.12.0 6.fc34 x86_64 837 k flatbuffers-1.12.0-6.fc34.src.rpm fedora Memory efficient serialization library http ASL 2.0 and BSD FlatBuffers is a serialization library for games and other memory constrained apps. FlatBuffers allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility.

We can use yum or dnf to install flatbuffers on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install flatbuffers.

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

sudo dnf -y install flatbuffers

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

sudo yum -y install flatbuffers

How To Uninstall flatbuffers on Fedora 34

To uninstall only the flatbuffers package we can use the following command:

sudo dnf remove flatbuffers

flatbuffers Package Contents on Fedora 34

/usr/bin/flatc
/usr/lib/.build-id
/usr/lib/.build-id/57
/usr/lib/.build-id/57/48d7524b6b5169569badd0437f0f91f41b902c
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/faa857ce1930601854569da9893deb3944c0e7
/usr/lib/libflatbuffers.so
/usr/lib/libflatbuffers.so.1
/usr/lib/libflatbuffers.so.1.12.0
/usr/share/doc/flatbuffers
/usr/share/doc/flatbuffers/readme.md
/usr/share/licenses/flatbuffers
/usr/share/licenses/flatbuffers/LICENSE.txt
/usr/share/man/man1/flatc.1.gz
/usr/bin/flatc
/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/9cc955ba6b967022349e7a037cb191ca3bba67
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/6a83ce9cfeb3dce3145c5fc5ab1dbd39408b85
/usr/lib64/libflatbuffers.so
/usr/lib64/libflatbuffers.so.1
/usr/lib64/libflatbuffers.so.1.12.0
/usr/share/doc/flatbuffers
/usr/share/doc/flatbuffers/readme.md
/usr/share/licenses/flatbuffers
/usr/share/licenses/flatbuffers/LICENSE.txt
/usr/share/man/man1/flatc.1.gz

References

Summary

In this tutorial we learn how to install flatbuffers on Fedora 34 using yum and dnf.