Create mount directory Yum and Mount 650) this.width=650; "Src=" http://s5.51cto.com/wyfs02/M01/8B/DF/ Wkiol1hbhplrhdc8aaasezwsqtw713.png-wh_500x0-wm_3-wmp_4-s_2226792957.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1hbhplrhdc8aaasezwsqtw713.png-wh_50 "/>
Go to/etc/yum.repos.d/Delete all files
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/DF/wKioL1hbhpSRdgq_AAD6LsDrPfc842.png-wh_500x0-wm_3 -wmp_4-s_2299586337.png "style=" Float:none; "title=" Faststoneeditor1.png "alt=" wkiol1hbhpsrdgq_ Aad6lsdrpfc842.png-wh_50 "/>
Create a text document Local.repo
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/DF/wKioL1hbhpKRaqp5AAChQdG2I58032.png-wh_500x0-wm_3 -wmp_4-s_2591604791.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1hbhpkraqp5aachqdg2i58032.png-wh_50 "/>
Enter/opt/to create a catalog CentOS
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/E3/wKiom1hbhpKxX_hCAAAIDwlv6JI657.png-wh_500x0-wm_3 -wmp_4-s_2056309798.png "style=" Float:none; "title=" 4.png "alt=" Wkiom1hbhpkxx_hcaaaidwlv6ji657.png-wh_50 "/>
Copy
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/DF/wKioL1hbhpOSXs3xAAAiLmrbGrg056.png-wh_500x0-wm_3 -wmp_4-s_4042621581.png "style=" Float:none; "title=" 5.png "alt=" Wkiol1hbhposxs3xaaailmrbgrg056.png-wh_50 "/>
Run the Yum clean all command
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/E3/wKiom1hbhpPwpEsgAAAMq7FPD3I746.png-wh_500x0-wm_3 -wmp_4-s_2236785504.png "style=" Float:none; "title=" 7.png "alt=" Wkiom1hbhppwpesgaaamq7fpd3i746.png-wh_50 "/>
Run the Yum List command
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/E3/wKiom1hbhpPC7pzEAAAKJ3mOAFc238.png-wh_500x0-wm_3 -wmp_4-s_246474028.png "style=" Float:none; "title=" 35.png "alt=" Wkiom1hbhppc7pzeaaakj3moafc238.png-wh_50 "/>
It worked
CentOS Server builds local Yum Source 2