How To Install ann on CentOS 7

In this tutorial we learn how to install ann on CentOS 7. ann is Library for searching Approximate Nearest Neighbors

Introduction

In this tutorial we learn how to install ann on CentOS 7.

What is ann

ANN is a library written in the C++ programming language to support both exact and approximate nearest neighbor searching in spaces of various dimensions. It was implemented by David M. Mount of the University of Maryland, and Sunil Arya of the Hong Kong University of Science and Technology. ANN (pronounced like the name ``Ann’’) stands for Approximate Nearest Neighbors. ANN is also a testbed containing programs and procedures for generating data sets, collecting and analyzing statistics on the performance of nearest neighbor algorithms and data structures, and visualizing the geometric structure of these data structures.

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

Install ann on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ann using yum by running the following command:

sudo yum -y install ann

Install ann on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ann using dnf by running the following command:

sudo dnf -y install ann

How To Uninstall ann on CentOS 7

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

sudo dnf remove ann

References

Summary

In this tutorial we learn how to install ann on CentOS 7 using yum and dnf.