Install R for RedHat

RedHat 7, 8, 9:

Generally, to use the commands below with other versions of RH, change the "7" to an "8" or a "9", for example. For versions of RH newer than RH 7, change "yum" to "dnf".

  1. Log in as a user with sudo access
  2. Run:  

yum repolist

If you have the EPEL, rhel-7-workstation-rpms, and rhel-7-workstation-optional-rpms listed, skip steps 3 & 4.

  1. Install the EPEL packages for Red Hat. Type:
    1. sudo yum update
    2. sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. Enable two other repos to allow the installation of dependencies. 
    1. Use the yum-config-manager to enable the rhel-7-workstation-rpms and rhel-7-workstation-optional-rpms repos:
      1. sudo yum-config-manager --enable rhel-7-workstation-rpms
      2. sudo yum-config-manager --enable rhel-7-workstation-optional-rpms

If you are unable to download the repos, then the system is probably not registered with Red Hat. Please register or contact the UWYO HelpDesk for assistance.

  1. 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

 

Was this helpful?
0 reviews