Centos configuration Network Yum comes from local Yum Source

Source: Internet
Author: User

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

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.