How To Install r-cran-rann on Kali Linux

In this tutorial we learn how to install r-cran-rann on Kali Linux. r-cran-rann is Fast Nearest Neighbour Search Using L2 Metric

Introduction

In this tutorial we learn how to install r-cran-rann on Kali Linux.

What is r-cran-rann

r-cran-rann is:

Finds the k nearest neighbours for every point in a given dataset in O(N log N) time using Arya and Mount’s ANN library (v1.1.3). There is support for approximate as well as exact searches, fixed radius searches and ‘bd’ as well as ‘kd’ trees. The distance is computed using the L2 (Euclidean) metric. Please see package ‘RANN.L1’ for the same functionality using the L1 (Manhattan, taxicab) metric.

There are three methods to install r-cran-rann on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-rann Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-rann using apt-get by running the following command:

sudo apt-get -y install r-cran-rann

Install r-cran-rann Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-rann using apt by running the following command:

sudo apt -y install r-cran-rann

Install r-cran-rann Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-rann using aptitude by running the following command:

sudo aptitude -y install r-cran-rann

How To Uninstall r-cran-rann on Kali Linux

To uninstall only the r-cran-rann package we can use the following command:

sudo apt-get remove r-cran-rann

Uninstall r-cran-rann And Its Dependencies

To uninstall r-cran-rann and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove r-cran-rann

Remove r-cran-rann Configurations and Data

To remove r-cran-rann configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge r-cran-rann

Remove r-cran-rann configuration, data, and all of its dependencies

We can use the following command to remove r-cran-rann configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-rann

Dependencies

r-cran-rann have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-rann package on Kali Linux using different package management tools: apt, apt-get and aptitude.