Configuring Yum on RHEL

Last Updated : Aug 03, 2026 |
Prolog information
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.
  1. Log on to the RHEL virtual machine using SSH.
    ADDITIONAL INFORMATION:
    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.
    ADDITIONAL INFORMATION: 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:
    ADDITIONAL INFORMATION: subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
  5. Install the EPEL repository:
    ADDITIONAL INFORMATION: dnf install: https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm