The easy method make a local repository:
[root@ceping yum.repos.d]# cat cdrom.repo [cdrom] name=Red Hat Enterprise Linux $releasever cdrom #baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/ baseurl=file:///mnt/Server enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [root@ceping yum.repos.d]# yum update
转载于:https://blog.51cto.com/mianhuhu/1201106