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 ):
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