3.7 Uninstalling Oracle R Distribution

To uninstall R, follow the instructions in the following sections:

3.7.1 Uninstalling Oracle R Distribution on Windows

Uninstall Oracle R Distribution just as you would uninstall any other Windows program, using Programs and Features in Windows Control Panel.

3.7.2 Uninstalling Oracle R Distribution on Linux

To uninstall Oracle R Distribution on Linux, log in as root and execute these commands in this order.

The example uninstalls R-3.3.0. To uninstall a different version of R, replace the R version in the example with the number of the version you want to uninstall.

Example 3-2 Linux Commands for Uninstalling Oracle R Distribution

Execute the rpm -e rpmname command, where rpmname is the name of the RPM you want to remove.

For example, to remove R-3.3.0 on Oracle Linux 6:

rpm -e R-3.3.0-2.el6 
rpm -e R-devel 
rpm -e R-core 
rpm -e R-core-extra 
rpm -e libRmath-devel 
rpm -e libRmath 
rpm -e libRmath-static

3.7.3 Uninstalling Oracle R Distribution on Oracle Solaris

Follow these instructions to uninstall Oracle R Distribution on Oracle Solaris.

To uninstall Oracle R Distribution on Oracle Solaris, follow the instructions in the readme on the Oracle R Distribution downloads page on the Oracle Technology Network.

The Oracle R Distribution installation directory on Oracle Solaris includes an uninstall script. Log in as root and run the script as follows, where installation_path is the path to the directory in which Oracle R Distribution is installed:

Example 3-3 Solaris Script for Uninstalling Oracle R Distribution

./uninstall.sh installation_path

Note:

If you do not specify the installation path, then the following default path is used:
  • For Solaris SPARC: /usr/lib/sparcv9

  • For Solaris Intel: /usr/lib/amd64

3.7.4 Uninstalling Oracle R Distribution on IBM AIX

Follow these instructions to uninstall Oracle R Distribution on IBM AIX.

To uninstall Oracle R Distribution on IBM AIX, follow the instructions in the readme on the Oracle R Distribution downloads page on the Oracle Technology Network.

Example 3-4 AIX Scripts for Uninstalling Oracle R Distribution

Run uninstall.sh as root to uninstall the filesets in Oracle R Distribution:

In the following command, installation_path is the location in which Oracle R Distribution is installed and rte_package_name is the Oracle R Distribution fileset to uninstall.

$ sudo ./uninstall.sh rte_package_name installation_path

The path /opt/R is used if you do not specify an installation path.

The options for rte_package_name are:

Option Description

ORD

Uninstall all of the filesets in Oracle R Distribution.

ORD.core

Uninstalls only the ORE.core fileset.

ORD.devel

Uninstall only the ORE.devel fileset.

The following command uninstalls all of the filesets using the specified path:

$ sudo ./uninstall.sh ORD /opt/R/3_3

The following commands uninstall the ORD.core and ORE.devel filesets:

$ sudo ./install.sh ORD.core
$ sudo ./install.sh ORD.devel