- Log in as root, or a user with sudo access
- Run:
yum repolist
If you have the EPEL, rhel-7-workstation-rpms, and rhel-7-workstation-optional-rpms listed, skip steps 3 & 4.
- Install the EPEL packages for Red Hat. Type:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum update
- Enable two other repos to allow the installation of dependencies.
Use the yum-config-manager to enable the rhel-7-workstation-rpms and rhel-7-workstation-optional-rpms repos:
sudo yum-config-manager --enable rhel-7-workstation-rpms
sudo yum-config-manager --enable rhel-7-workstation-optional-rpms
Alternatively, you can edit the /etc/yum.repos.d/redhat.repo file:
sudo nano /etc/yum.repos.d/redhat.repo
In the [rhel-7-workstation-rpms] and [rhel-7-workstation-optional-rpms] sections,
changing enabled=0 to enabled=1
Note, if the file is empty but for this:
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make chang$
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#
then the system is probably not registered with Red Hat. Please register or contact the UWYO HelpDesk for assistance.
- R has some dependencies: you will need blas-devel, lapack-devel, and texinfo-tex. With the above rpms enabled, yum will install them automatically. Run:
sudo yum install R