QQ: 35328447
Local Yum Source:
First, if it is a vmwarevm, set the CD/dvd iso image to the iso of the centos series.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/41/5B/wKiom1PTi6nQsikiAAL6RNvOtPc557.jpg "Title =" 1.png" alt = "wkiom1pti6nqsikiaal6rnvotpc557.jpg"/>
Mounting ISO to the MNT directory in the system
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/5B/wKiom1PTjCjR8ngqAAHaCgIag0g058.jpg "Title =" 2.png" alt = "wkiom1ptjcjr8ngqaahacgiag0g058.jpg"/>
Enter/etc/yum. Repos. d/
Change the CentOS-Base.repo name because it is the network Yum Source
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/41/5B/wKiom1PTjMLxws-bAAFVtRHx2MA970.jpg "Title =" 3.png" alt = "wKiom1PTjMLxws-bAAFVtRHx2MA970.jpg"/>
Modify CentOS-Media.repo
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/41/5C/wKioL1PTjhbQ_RcZAAMN1nrILjI583.jpg "Title =" 4.png" alt = "wkiol1ptjhbq_rczaamn1nrilji583.jpg"/>
Baseurl = file: // MNT local ISO mounting path
Enabled = 1 Enabled
Save and exit.
The Network Yum source first backs up/etc/yum. repos. d/CentOS-Base.repo mV/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup to download the corresponding version of the repo file, put in/etc/yum. repos. d/(back up data before the operation) wget/etc/yum. repos. d/run the following command to generate the cache Yum clean all Yum makecach
This article from the "No regrets" blog, please be sure to keep this source http://redsr.blog.51cto.com/4018949/1530541
Centos configuration Network Yum comes from local Yum Source