Configuring Yum on RHEL

Last Updated : Sep 24, 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. Enable the CodeReady Builder repository:
    ADDITIONAL INFORMATION: sudo dnf config-manager --set-enabled codeready-builder-for-rhel-9-rhui-rpms
  4. Run the following commands to install the EPEL repository:
    ADDITIONAL INFORMATION: sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
    sudo dnf clean all
    sudo dnf makecache