CentOS Server builds local Yum Source 2

Source: Internet
Author: User
Tags centos server

  1. 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 "/>


  2. 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 "/>

  3. 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 "/>

  4. 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 "/>

  5. 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 "/>

  6. 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 "/>

  7. 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 "/>

  8. It worked

CentOS Server builds local Yum Source 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.