file: /etc/yum.repos.d/local.repo
[localrepo]
name=Red Hat 5.7 - My Local Repo
baseurl=file:///mnt/iso/Server/
enabled=1
gpgcheck=0
#gpgkey=file:///path/to/you/RPM-GPG-KEY

test with "yum update"

computer2know :: thank you for your visit :: have a nice day :: © 2018