A.2.2 Install Oracle R Distribution

Example of installing Oracle R Distribution.

To install Oracle R Distribution on the server from Oracle public yum, follow these steps:

  1. Log in as root and change to the /etc/yum.repos.d directory:
    cd /etc/yum.repos.d
    
  2. List the contents of the directory to determine if the yum configuration file is present. The yum configuration file for Oracle Linux 6 is called public-yum-el6.repo.

    If public-yum-el6.repo is not present, then execute the following command to download it from Oracle public yum:

    wget https://public-yum.oracle.com/public-yum-el6.repo
    
  3. Open public-yum-el6.repo in a text editor and specify enabled=1 for latest and addons:
    [el6_latest]
    enabled=1
    
    [el6_addons]
    enabled=1
    
  4. Install Oracle R Distribution 3.3 by executing these commands:
    yum install R-3.3.0
    yum install R-core-extra
  5. Set LD_LIBRARY_PATH to the location of the files installed by the R-core-extra RPM:
  6. Exit the root user.
    exit