Rhel 6 Free



Contents

  • Install R
  • Install Rserve Package
  • Install ROracle Package

Install R

Red Hat Developer. We serve the builders. The problem solvers who create careers with code. Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead. All of Red Hat's official support and training and the Red Hat Certification Program centres around the Red Hat Enterprise Linux platform. Red Hat uses strict trademark rules to restrict free re-distribution of its officially supported versions of Red Hat Enterprise Linux, but still freely provides its source code.

  • CentOS is a free operating system distribution based upon the Linux kernel. It is derived entirely from the Red Hat Enterprise Linux (RHEL) distribution. CentOS exists to provide a free enterprise class computing platform and strives to maintain 100% binary compatibility with its upstream source, Red Hat.2.
  • Red Hat Enterprise Linux (often abbreviated to RHEL) is a Linux distribution developed by Red Hat for the commercial market. Red Hat Enterprise Linux is released in server versions for x86-64, Power ISA, ARM64, and IBM Z and a desktop version for x86-64. All of Red Hat's official support and training, together with the Red Hat Certification Program, focuses on the Red Hat Enterprise Linux.
Rhel

In order to get R running on RHEL 6, we need to add an additional repository that allows us to install the new packages.The EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Groupthat creates, maintains, and manages a high quality set of additional packages for Enterprise Linux,including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).

EPEL Repository

First, login as root user, and add EPEL repository:

You can also search for additional R packages using yum command:

When the installation is finished successfully, you can run R:

Free

To verify is EPEL repository is enabled, run following command:

And the output could be like:

[Optional] CentOS Repository

Sometimes, there could be some library missing while installing R using yum.In this case, you may need add CentOS repository by creating a new repository file:

And add following contents (note that you need to change the version number depending on your RHEL version):

Rhel 6 Firewall

Install Rserve Package

Download and Install

Free

Find the Rserve package file in our R archive, or download the latest version fromCRAN.

Then use R CMD to install the package (the file name could be different):

Configuration

Rserve is configured by the configuration file /etc/Rserv.conf.If no configuration file is supplied, Rserve accepts no remote connections,requires no authentication and file transfer is enabled.To enable remote access, we need to create a configuration file and enable remote:

The other possible configuration items are as follows(all entries are optional, default values are in angled brackets):

Start Rserve

Login as rudolph user and start the Rserve by:

Then check if the Rserve can be remotely accessed from other machine:

If you have an accessible Rserve, you should see a response like:

Install ROracle Package

Rhel 6 For Dummies

Find the R package files (DBI and ROracle) in our R archive, or download the latest version fromDBIand ROracle.

Install DBI

Install ROracle

If you have Oracle Client installed, you need to set LD_LIBRARY_PATH and ORACLE_HOME variables.For example, if the Oracle was installed in /apps/oracle/product/11g, then you need to do following:

If you have Oracle Instant Client installed, you need to set OCI_LIB and LD_LIBRARY_PATH variables.For example, if the Instant Client was installed in ‘/apps/oracle/instantclient_11_2’, then you need to do following:

To verify if ROracle is installed, you can launch R console by running R and load the library:

For more details about installing ROracle, please refer to https://cran.r-project.org/web/packages/ROracle/INSTALL.

Uninstall R

Suppose you install R using yum, then you can use the following commands to totally uninstall R:

Reference & Resource