Redhat system uses local mirror as update source

Source: Internet
Author: User
Tags gpg

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.