Yum Update source server is not as convenient as Ubuntu, access speed is slow, so if you have a full system image, mount the update is a good choice.
Attach the image to the system first, and if you are using a VMware virtual machine it is more convenient to select the virtual machine----settings directly. You then begin to modify the configuration file.
Modify the local yum repo file, go to/ETC/YUM.REPOS.D, delete the default repo file, and then create a new one yourself.
[base]name=localisobaseurl= "file:///media/OL6.4x86_64" gpgcheck=1enabled=1gpgkey= "file:///media/OL6.4x86_64/ Rpm-gpg-key-oracle "
This is the simplest notation, but it's enough to use. /media/ol6.4x86_64 is the local mount ISO directory, gpgkey to the mirror root directory looks like "rpm-gpg-key-oracle" file, Linux corresponding files are located under/ETC/PKI/RPM-GPG, Can be matched on both sides, or update the time is always verified, enabled to specify that the configuration is available.
Others can refer to the blog post:
Yum configuration file Description http://www.cnblogs.com/moriarty/archive/2012/05/14/2498832.html
The. repo file of the Yum source http://blog.csdn.net/julius819/article/details/7381738
This article is from the "Felix" blog, please be sure to keep this source http://felixhwang.blog.51cto.com/3263859/1662246
Redhat system uses local mirror as update source