How To Install R-java on CentOS 8
Introduction
In this tutorial we learn how to install R-java on CentOS 8.
What is R-java
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. This package also has an additional dependency on java, as provided by Fedora’s openJDK.
We can use yum or dnf to install R-java on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install R-java.
Install R-java on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install R-java using yum by running the following command:
sudo yum -y install R-java
Install R-java on CentOS 8 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 R-java using dnf by running the following command:
sudo dnf -y install R-java
How To Uninstall R-java on CentOS 8
To uninstall only the R-java package we can use the following command:
sudo dnf remove R-java
References
Summary
In this tutorial we learn how to install R-java on CentOS 8 using yum and dnf.