1. Mount the disc
Mount/dev/cdrom/mnt
View the MNT directory, the main source files in the Packages folder, in fact, directly to the CD-ROM packages copy to the Linux system directory is also possible
2. Modify the configuration file
Step one: Back up the configuration file
Cp-r Yum.repos.d/yum.repos.d.bak
Step Two: Delete the configuration file Centos-base.repo
RM-RF Centos-base.repo
Part III: Modification of Centos-media.repo
[Local-cdrom] Module name
Name=cdrom Name
Baseurl=file:///mnt/yum Source Path
Gpgcheck=0 whether to open GPG verification, generally do not
Enabled=1 enabled
3, using the Yum list check, if Local-cdrom appears, indicating success
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/49/wKiom1am8FbQAlwtAACQA0A-Lx4156.png "title=" 1.png " alt= "Wkiom1am8fbqalwtaacqa0a-lx4156.png"/>
This article is from the Linux Technical Exchange blog, so be sure to keep this source http://9678130.blog.51cto.com/9668130/1738566
Use CD to build local yum repository source