How to extract a Red Hat Enterprise Linux ISO/DVD

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Issue

  • How to extract the contents of the RHEL installation DVD?

Resolution

NOTE: The RHEL9.2 DVD available on Customer Portal cannot be extracted with external utilities such as 7z.
Using the procedure below is known to always work.

  1. Mount the DVD iso file:

    # mount -o loop /<PATH>/<TO>/<ISO-FILE>.iso /mnt
    
  2. Create the target directory to store the extracted files:

    # mkdir -p /<PATH>/<TO>/<TARGET>
    
  3. Use the tar tool to safely copy the content to the target directory:

    # tar cf - -C /mnt . | tar xf - -C /<PATH>/<TO>/<TARGET>
    
  4. Unmount the DVD iso file:

    # umount /mnt
    
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.