Configuring Yum on RHEL

Last Updated : Nov 17, 2021 |

Before you begin

  • Converting the *.pem file to the *.ppk format.

  • Configuring PuTTY for an SSH session.

  • Find the SSH user name of the instance you deployed.

For more information, see Appendix.

Procedure

  1. Log on to the RHEL virtual machine using SSH.

    Use the SSH user name to log on.

  2. Switch to root user by using the following command: sudo su
  3. Check if the BaseOS and AppStream repos are enabled.
    Repo ID:rhel-8-for-x86_64-baseos-rpms
    Repo Name:Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
    Repo URL:https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
    Enabled: 1
    

    and

    Repo ID:rhel-8-for-x86_64-appstream-rpms
    Repo Name:Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
    Repo URL:https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
    Enabled:1
    
  4. Enable the CodeReady Builder repository:
    subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
  5. Install the EPEL repository:
    dnf install: https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm