Configure local source for rhel6.5 In the VM

Source: Internet
Author: User

 

 

Step 2: 1. automatically mount the installation disk at startup; 2. Add ". repo "(or get rid of the original source configuration p.s. unless you do not want to use the network source or know how to change the source configuration, do not change it)

First, Create the directory (eg: mkdir/Media/rhel6p5) where you want to attach the disc in/media)

Find the RC. Local file in/etc/rc. d and add the action you want when the system starts (whatever you want) to the file ):

    • If [-E/dev/CDROM] & [-D/Media/rhel6p5]

    • Then

    • Mount/dev/CDROM/Media/rhel6p5

    • Exit 1

    • Fi

Save and then proceedStep 2-- Add a source repo:

Go to the source configuration directory and create a file (eg: VI/etc/yum. repos. d/RHEL. repo) and then start editing (p.s. '#' does not need to input the content after it)

    • [RHEL]

    • Name = xxxxxxx # Do it yourself

    • Baseurl = file: // media/rhel6p5 # specifies the path to be mounted in step 1 before being assigned to the source.

    • Enabled = 1 #1 indicates enabled, as for 0 ......

    • Gpgcheck = 1 # GPG-key check. The parameters are the same as above.

    • Gpgkey = file: // media/RHEL/rpm-GPG-key-RedHat-release # Find a path similar to this on the CD

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.