[RHEL 6] Unable to install from kickstart using DVD image as installation source/repository
Environment
- Red Hat Enterprise Linux (RHEL) 6
Issue
- At least one package can't be installed from kickstart using x86_64 DVD image RHEL6.0-20100909.1-Server-x86_64-DVD1.iso as an installation source
- The package also can't be installed with yum using the DVD contents as a repository
Resolution
- For kickstart installations, add the 'repo' directive for each AddOn repository that is needed (HighAvailability, LoadBalancer, etc).
-
For installing packages from the DVD using yum, add a yum repository configuration for each needed AddOn.
-
How to add a local yum repository, please follow below steps.
Mount RHEL 6 ISO to /media/rhel6
# mount -o loop RHEL6.0-20101111.0-Server-x86_64-DVD.iso /media/rhel6
Copy media.repo file from the RHEL 6 ISO to /etc/yum.repos.d/
# cp /media/media.repo /etc/yum.repos.d/rhel6.repo
Configure the repo file to point to the /media/rhel6
# vi /etc/yum.repos.d/rhel6.repo
add following line
baseurl=file:///media/rhel6/Server
If you want to configure repository for HighAvailability , LoadBalancer , ResilientStorage , ScalableFileSystem then you can add following lines in rhel6.repo file
[dvd-HighAvailability]
mediaid=1289489697.332694
name=DVD for RHEL6 - HighAvailability
baseurl=file:///media/rhel6/HighAvailability
enabled=1
gpgcheck=0
[dvd-LoadBalancer]
mediaid=1289489697.332694
name=DVD for RHEL6 - LoadBalancer
baseurl=file:///media/rhel6/LoadBalancer
enabled=1
gpgcheck=0
[dvd-ResilientStorage]
mediaid=1289489697.332694
name=DVD for RHEL6 - ResilientStorage
baseurl=file:///media/rhel6/ResilientStorage
enabled=1
gpgcheck=0
[dvd-ScalableFileSystem]
mediaid=1289489697.332694
name=DVD for RHEL6 - ScalableFileSystem
baseurl=file:///media/rhel6/ScalableFileSystem
enabled=1
gpgcheck=0
Root Cause
In Red Hat Enterprise Linux 5, each AddOn on the DVD had its own Packages/ directory. In Red Hat Enterprise Linux 6 the structure switched to a single Packages/ directory that is symlinked from the various subdirectories. Repodata is used to distinguish which RPMs belong to the base product and which belong to each of the AddOns.The primary motivation for this change was to eliminiate package duplication. There were already several RPMs that appeared more than once and the old setup would have caused them to get included multiple times on the DVD. Additionally, having a single Packages/ directory allows for more future flexibility.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
