redhat7本地yum源
mount /dev/cdrom /mnt/cdrom/
cd /etc/yum.repos.d/
vim dvd.repo
[rhel-yum] name=dvd baseurl=file:///mnt/cdrom enabled=1 gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
yum clean all
yum makecache
完成
mount /dev/cdrom /mnt/cdrom/
cd /etc/yum.repos.d/
vim dvd.repo
[rhel-yum] name=dvd baseurl=file:///mnt/cdrom enabled=1 gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
yum clean all
yum makecache
完成