Use CD to build local yum repository source

Source: Internet
Author: User

1. Mount the disc

Mount/dev/cdrom/mnt

View the MNT directory, the main source files in the Packages folder, in fact, directly to the CD-ROM packages copy to the Linux system directory is also possible

2. Modify the configuration file

Step one: Back up the configuration file

Cp-r Yum.repos.d/yum.repos.d.bak

Step Two: Delete the configuration file Centos-base.repo

RM-RF Centos-base.repo

Part III: Modification of Centos-media.repo


[Local-cdrom] Module name

Name=cdrom Name

Baseurl=file:///mnt/yum Source Path

Gpgcheck=0 whether to open GPG verification, generally do not

Enabled=1 enabled

3, using the Yum list check, if Local-cdrom appears, indicating success

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/49/wKiom1am8FbQAlwtAACQA0A-Lx4156.png "title=" 1.png " alt= "Wkiom1am8fbqalwtaacqa0a-lx4156.png"/>


This article is from the Linux Technical Exchange blog, so be sure to keep this source http://9678130.blog.51cto.com/9668130/1738566

Use CD to build local yum repository source

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.