Mount the RHEL 5 installation ISO somewhere like
/media/rhel5dvd, e.g.:
Mount the RHEL 5 installation ISO somewhere like/media/rhel5dvd, e.g.:# mount -o loop RHEL5.9-Server-20121129.0-x86_64-DVD.iso /media/rhel5dvd Check the numeric value found on the first line of the.discinfofile from the mounted DVD# head -n1 /media/rhel5dvd/.discinfo
1354216429.587870 Create a new file in/etc/yum.repos.d/, e.g./etc/yum.repos.d/dvd.repoand add the following content to it[dvd-Server]
mediaid=1354216429.587870
name=RHEL 5 Server DVD
baseurl=file:///media/rhel5dvd/Server
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
gpgcheck=1Customize the file appropriately, i.e.:
- The value of
baseurlmust match up with where the DVD was mounted in step #1- If using RHEL Client or Workstation, the last directory in the
baseurlwill need to be changed toClient- Set the numeric value found from
.discinfofile tomediaid. As a final step, it might be a good idea to run the commandyum clean allonce Also note that if the system is registered to Red Hat Network,yumcan be run with the--nopluginsoption to prevent it from connecting to RHN Optional: To configure access to the supplementary packages in the directoriesCluster,ClusterStorage,VT, add additional repositories for them in the same file, e.g.:[dvd-cluster]
mediaid=1354216429.587870
name=DVD for RHEL5 - Cluster
baseurl=file:///media/rhel5dvd/Cluster
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
gpgcheck=1
[dvd-cluster-storage]
mediaid=1354216429.587870
name=DVD for RHEL5 - ClusterStorage
baseurl=file:///media/rhel5dvd/ClusterStorage
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
gpgcheck=1
[dvd-vt]
mediaid=1354216429.587870
name=DVD for RHEL5 - VT
baseurl=file:///media/rhel5dvd/VT
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
gpgcheck=1Note: Make sure to customize the above as in step #3. Optional and specific to RHEL5 Client: To configure access to the packages in theWorkstationdirectory, add a repo stanza to the above file for that as well, e.g.:[dvd-workstation]
mediaid=1354233478.680018
name=DVD for RHEL5 - Workstation
baseurl=file:///media/rhel5dvd/Workstation
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled=1
gpgcheck=1
0 comments:
Post a Comment