How To Install R-core on AlmaLinux 8

In this tutorial we learn how to install R-core in AlmaLinux 8. R-core is The minimal R components necessary for a functional runtime

Introduction

In this tutorial we learn how to install R-core on AlmaLinux 8.

What is R-core

A language and environment for statistical computing and graphics. R is similar to the award-winning S system, which was developed at Bell Laboratories by John Chambers et al. It provides a wide variety of statistical and graphical techniques (linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, …). R is designed as a true computer language with control-flow constructions for iteration and alternation, and it allows users to add additional functionality by defining new functions. For computationally intensive tasks, C, C++ and Fortran code can be linked and called at run time.

We can use yum or dnf to install R-core on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install R-core.

Install R-core on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install R-core

Install R-core on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install R-core using yum by running the following command:

sudo yum -y install R-core

How To Uninstall R-core on AlmaLinux 8

To uninstall only the R-core package we can use the following command:

sudo dnf remove R-core

References

Summary

In this tutorial we learn how to install R-core on AlmaLinux 8 using yum and dnf.