Repo
[root@localhost ~]# ls -lh /mnt/
total 12G
dr-xr-xr-x. 7 root root 2.0K Apr 11 2023 rhel-8.8-x86_64-dvd
-rwxrwxr-x. 1 rhel rhel 12G May 24 11:03 rhel-8.8-x86_64-dvd.iso
[root@localhost ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri May 24 02:34:01 2024
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=b90f3be9-17df-4c2f-812b-d1a1e96b07c2 /boot xfs defaults 0 0
/dev/mapper/rhel-swap none swap defaults 0 0
/mnt/rhel-8.8-x86_64-dvd.iso /mnt/rhel-8.8-x86_64-dvd iso9660 loop 0 0
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
dvd-AppStream.repo dvd-BaseOS.repo redhat.repo
[root@localhost yum.repos.d]# cat dvd-AppStream.repo
[AppStream]
name=Red Hat Enterprise Linux 8.8.0 AppStream
mediaid=None
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1
baseurl=file:///mnt/rhel-8.8-x86_64-dvd/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@localhost yum.repos.d]# cat dvd-BaseOS.repo
[BaseOS]
name=Red Hat Enterprise Linux 8.8.0 BaseOS
mediaid=None
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1
baseurl=file:///mnt/rhel-8.8-x86_64-dvd/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release