How To Install r-cran-apcluster on Ubuntu 20.04

In this tutorial we learn how to install r-cran-apcluster on Ubuntu 20.04. r-cran-apcluster is Affinity Propagation Clustering

Introduction

In this tutorial we learn how to install r-cran-apcluster on Ubuntu 20.04.

What is r-cran-apcluster

r-cran-apcluster is:

Implements Affinity Propagation clustering introduced by Frey and Dueck (2007) DOI:10.1126/science.1136800. The algorithms are largely analogous to the ‘Matlab’ code published by Frey and Dueck. The package further provides leveraged affinity propagation and an algorithm for exemplar-based agglomerative clustering that can also be used to join clusters obtained from affinity propagation. Various plotting functions are available for analyzing clustering results.

There are three methods to install r-cran-apcluster on Ubuntu 20.04. 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-apcluster 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-apcluster using apt-get by running the following command:

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

Install r-cran-apcluster Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-apcluster

Install r-cran-apcluster 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install r-cran-apcluster

How To Uninstall r-cran-apcluster on Ubuntu 20.04

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

sudo apt-get remove r-cran-apcluster

Uninstall r-cran-apcluster And Its Dependencies

To uninstall r-cran-apcluster and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

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

Remove r-cran-apcluster Configurations and Data

To remove r-cran-apcluster configuration and data from Ubuntu 20.04 we can use the following command:

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

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

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

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

References

Summary

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