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".
- Log in as 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 update
- sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- 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
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.
- 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