Install the Linux iso file as the yum source

Source: Internet
Author: User
Cdmntmkdircdrommountdevcdrommntcdrom install CREATEREPO tool l cd/mnt mkdir cdrom mount/dev/cdrom/mnt/cdrom
Install CREATEREPO tool ls | grep createrepo rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm cd/mnt createrepo. (because the mounted cdrom cannot be read and written at this time, you can only create a YUM repository in the directory on the next level, that is,/mnt.
Create a yum repository definition File: cd/etc/yum. repos. d vi iso. repo [ISO] name = iso baseurl = file: // mnt/enabled = 1 gpgcheck = 0
Yum clean all yum update

The script yum install binutils * yum install compat * yum install elfutils * yum install gcc * yum install glibc * yum install kernel * yum install ksh * yum install libaio * yum install install libgcc * yum install libgomp * yum install libstdc * yum install make * yum install sysstat * yum install unixODBC *
If an error is reported, add -- nogpgcheck.
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.