Hitachi Energy
Installing RPM Packages using YUM
YUM is capable of tracking the dependencies of a package and installing them prior to installing the package that the user wanted to install. This simplifies the whole process as you only need to know the name of the package that you want to install.
This section describes how to set up YUM repository using DVD.
 
 
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.
You should now be ready to prepare FOXMAN‑UN installation. Continue with section System Configurations.
* 
Please note: 
If FOXMAN‑UN installation in FOXMAN‑UN Installation Procedure fails it might be helpful to temporarily move the automatically installed repo files to another directory, leaving dvd.repo only in yum.repos.d before installing FOXMAN‑UN.