How To Install flann on Fedora 34

flann is Fast Library for Approximate Nearest Neighbors Fast Library for Approximate Nearest Neighbors

Introduction

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

What is flann

FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a collection of algorithms found to work best for nearest neighbor search and a system for automatically choosing the best algorithm and optimum parameters depending on the data sets. flann 1.9.1 2.fc34 x86_64 1.2 M flann-1.9.1-2.fc34.src.rpm fedora Fast Library for Approximate Nearest Neighbors http BSD FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a collection of algorithms found to work best for nearest neighbor search and a system for automatically choosing the best algorithm and optimum parameters depending on the data sets.

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

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

sudo dnf -y install flann

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

sudo yum -y install flann

How To Uninstall flann on Fedora 34

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

sudo dnf remove flann

flann Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/7419d3dd3e530e43f1bdb5bce9e4db6445faa3
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/db98cc6974a0630c544e88c6d95caf0db708aa
/usr/lib/libflann.so.1.9
/usr/lib/libflann.so.1.9.1
/usr/lib/libflann_cpp.so.1.9
/usr/lib/libflann_cpp.so.1.9.1
/usr/share/doc/flann
/usr/share/doc/flann/manual.pdf
/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/378f523ca4e0137a0962a0fc5de0d06d1f28da
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/3adf791a9db669d492246721fc722a1cddb8a9
/usr/lib64/libflann.so.1.9
/usr/lib64/libflann.so.1.9.1
/usr/lib64/libflann_cpp.so.1.9
/usr/lib64/libflann_cpp.so.1.9.1
/usr/share/doc/flann
/usr/share/doc/flann/manual.pdf

References

Summary

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