Download the local CD-ROM to the system:Cent6.2The installation CD is placed in the CD-ROM and operates at the terminal command line
mkdir/mnt # New Mount Directory
mount/dev/cdrom/mnt# mount the disc to/mntdirectory under
cd/mnt # go to mount directory
Ls View Mount directory,
650) this.width=650, "style=" Border-bottom: #ddd 1px solid;border-left: #ddd 1px solid;background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border-top: #ddd 1px solid;border-right: #ddd 1px solid;" Src= "/e/u261/ Themes/default/images/spacer.gif "width=" 553 "height=" 318 "alt=" Spacer.gif "/>
Configure localYumSource
cd/etc/yum.repos.d/# EnterYumConfiguration Directory
VI Centos-media.repo # Edit the configuration file and add the following:
1.1 [guangpan]
2. 2  name = centos custom name
3.3 baseurl=file:///mnt/# local CD mount Path
4.4Gpgcheck=0 #CheckGpg-key,0to not check,1to check
5.5enabled=1 #enabledYumSource,0to not enable,1to enable
Such as:
650) this.width=650, "style=" Border-bottom: #ddd 1px solid;border-left: #ddd 1px solid;background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border-top: #ddd 1px solid;border-right: #ddd 1px solid;" Src= "/e/u261/ Themes/default/images/spacer.gif "width=" 557 "height=" 311 "alt=" Spacer.gif "/>
Note: centos need to file is renamed so that you can bypass the network for local source installation.
1. cd/etc/yum.repos.d/
2.2 mv Centos-base.repo centos-base.repo123
3.3 mv Centos-debuginfo.repo centos-debuginfo.repo123
Test Local Yum The source is configured successfully:
CentOS Local Yum Source configuration