Linux CENTOS6 mount local ISO optical drive image

Source: Internet
Author: User
Tags gpg

Insert the CentOS system CD into the optical drive and, if it is a VM virtual machine, select load ISO image

On the VM tab--Settings--Hardware-cd/dvd/--using ISO image file, select your ISO path

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/50/wKioL1b8kn6zXsP-AACqx6A7wsY362.png "title=" 1.png " alt= "Wkiol1b8kn6zxsp-aacqx6a7wsy362.png"/>

To mount the optical drive:

Set up the Mount directory first,

#mkdir/media/cdrom

#mount/dev/cdrom/media/cdrom

Go to/media/cdrom to see if there is a file display and ISO, so it succeeds.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/50/wKioL1b8k5KQRFqnAAAp0k42VO4015.png "title=" 2.png " alt= "Wkiol1b8k5kqrfqnaaap0k42vo4015.png"/>


Modify Yum Source

1. Remove the network Yum source.

#cd/ETC/YUM.REPOS.D

#mv Centos-base.repo Centos-base.repo.bak


2. Configure local Yum

#cd/ETC/YUM.REPOS.D

#mv Centos-media.repo Centos-media.repo.bak

#vi Centos-media.repo

Enter the following content

[C5-media]
name=centos-$releasever-media
baseurl=file:///media/cdrom/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6


3. Updating the Yum cache

# yum Clean All (Clear Cache)

# yum Makecache (Create new cache)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/50/wKioL1b8lRaCZMIeAAAb1AsaF6Q336.png "title=" 3.png " alt= "Wkiol1b8lraczmieaaab1asaf6q336.png"/>

Build success.


Reference:

Http://jingyan.baidu.com/article/e9fb46e1aed8207521f7662c.html

Http://blog.chinaunix.net/uid-20639775-id-2854736.html

http://blog.163.com/[email protected]/blog/static/9540383720095239183669/

This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1758754

Linux CENTOS6 mount local ISO optical drive image

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.