Use the local iso file to assume that the yum Source

Source: Internet
Author: User

The local iso file is used to assume the yum source. For the redhat yum, it is said that it must be registered before it can be used, therefore, it is quite simple to use local iso files to assume the yum source for children's shoes that use redhat. I. Mounting the Installation File iso: for mounting the iso file to the virtual machine, for physical servers, placing the installation disc in the optical drive. II. Creating a local directory and placing the iso content, in this way, you do not need to attach the CD every time # mkdir/mnt/c 3. mount the iso file to the linux system # mount-o loop-t iso9660/dev/cdrom/mnt/c 4. Modify the repo file of yum to create local. place the repo in/etc/yum. repos. d/, content: [base] name = serverbaseurl = file: // mnt/c/Serverenabled = 1 gpgcheck = 0 V. Test # yum install samba

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.