3.2.2 Install Oracle R Distribution on Oracle Linux 7 Using Yum
Oracle recommends using yum to install Oracle R Distribution on Linux 7.
To install Oracle R Distribution on Oracle Linux 7 Using Yum:
-
Log in to the Linux server as root and change to the
/etc/yum.repos.d
directory:# cd /etc/yum.repos.d
-
List the contents of the directory to determine if the Oracle Linux 7 yum configuration file is present. The name of the configuration file is
public-yum-ol7.repo
.If the Oracle Linux 7 yum configuration file is not present, then download it from Oracle public yum by executing the
wget
command for your Linux platform:# wget https://public-yum.oracle.com/public-yum-ol7.repo
-
Open
public-yum-ol7.repo
in a text editor and specifyenabled=1
forol7_latest
,ol7_addons
andol7_optional_latest
:[ol7_latest] enabled=1 [ol7_addons] enabled=1 [ol7_optional_latest] enabled = 1
The location of the Oracle R Distribution packages is specified in
ol7_addons
. The location of the dependencies for the Oracle R Distribution RPMs is specified inol7_latest
and several dependencies are inoptional_latest
.The URLs for the Oracle R Distribution RPMs in the addons repository are shown in the example at the end of this topic.
Note:
If you are not using the most recent version of Oracle Linux and you want to install dependent packages that are specific to your version, then you must enable the corresponding Oracle Linux repository.
For example, to enable the Oracle Linux 7 base repository open
public-yum-ol7.repo
in a text editor and specifyenabled=1
forol7_latest
:[ol7_base] enabled=1
The output will look similar to the following:
[ol7_base] name=Oracle Linux $releasever installation media copy ($basearch) baseurl=https://public-yum.oracle.com/repo/OracleLinux/OL7/ base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
-
Run the
yum
install
command to install R. Specify the version number to install for Rversion. For example, to install R-3.6.1, use the commandyum install R-3.6.1
.# yum install R-Rversion
To install the most recent version of R that is available on Oracle public yum:
# yum install R.x86_64
Note:
Do not assume that the most recent version of R on Oracle public yum is supported by your version of Oracle Machine Learning for R. Consult the table of configuration requirements and server support in Oracle Machine Learning for R System Requirements for On-Premises Database to determine which version of R you should use.
Parent topic: Install Oracle R Distribution on Linux