Red Hat Certified System Administrator RHCSA · Free Practice Question Medium

Question 39

How to create a local YUM repository using a RHEL 9 ISO image, assuming the image is mounted on either /mnt or /run in a Linux VM?

Show model answer

To set up a local YUM repository on RHEL 9, follow these steps:

Mount the RHEL 9 ISO to a directory, typically /mnt or /run/media.

Create a repo file under /etc/yum.repos.d/, e.g., rhel9-local.repo.

In the file, add:

Adjust baseurl according to the mount point.

Update the repository list using yum update.

This method turns the mounted ISO into a local repository, enabling package installation directly from the ISO image.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need