Using locally mounted RHEL 9.6 Installation DVD | |
Steps | Procedures |
1. | Mount the RHEL 9.6 DVD as per Mounting DVD as Local Repository instructions. Take note of the DVD mount point, e.g., /mnt/rhel9 |
2. | Change to the yum.repos.d directory: # cd /etc/yum.repos.d Note: The etc/yum.repos.d is the default directory for the repos as defined in /etc/yum.conf. |
3. | Create a new repo file. The name of the file is not important, as long as it ends in .repo, e.g., use dvd.repo: # vi dvd.repo Add the lines as shown in the sample below (/mnt/rhel9 is the mount point) for the two repositories required: [InstallMedia-BaseOS] name=RHEL9-BaseOS baseurl=file:///mnt/rhel9/BaseOS/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release metadata_expire=-1 [InstallMedia-AppStream] name=RHEL9-AppStream baseurl=file:///mnt/rhel9/AppStream/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release metadata_expire=-1 Save and exit the file. |
Note: [InstallMedia-BaseOS], [InstallMedia-AppStream] are the names of the repositories. baseurl tells the yum where to download the packages from (software repo). It is the path to the mountpoint that you have created previously suffixed with /Server. | |
enabled=1 the repository is enabled. gpgcheck=1 the GPG signatures should be used to check the downloaded packages. gpgkey location of the GPG key. To obtain the path or location: # find /etc -name ‘*RPM-GPG-KEY*’ | |
4. | Import the key: # rpm --import /etc/pki/rpm-gpg/* |
5. | Check the repo installation # yum repolist This will list the repos with repo id and the related repo name. The list should not be empty and should at least include the AppStream and BaseOS repos. |