How To Install r-cran-rann on Debian 12
Introduction
In this tutorial we learn how to install r-cran-rann
on Debian 12.
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 Debian 12. 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 first since aptitude is usually not installed by default on Debian. 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 Debian 12
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 Debian 12, 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 Debian 12 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 Debian 12 using different package management tools: apt
, apt-get
and aptitude
.