Fedora builds local Yum source with installation DVD

Source: Internet
Author: User
Creating a local Yum source with the installation DVD

In the release setup disk, the repo information has been provisioned and stored in a directory named Repodata. It can be said that the installation disk itself is a ready-made Yum source. In the RHEL5, a plurality of repo are preset, which are stored in <cdroot>/server/repodata,<cdroot>/cluster/repodata and other directories; in Fedora12, stored in the < The Cdroot>/repodata. In some older distributions, such as RHEL4, there is no preset repo information. In this case, the repo information needs to be manually created for Yum to use. Information on the manual establishment of repo.
For Fedora12, it is relatively simple:

First, put the CD into the CD drive and mount the disc.

# Mount/dev/hdc/media/cdrom
Mount:block DEVICE/DEV/HDC is write-protected, mounting read-only



If there is an installation disk image locally, it is also mounted to the appropriate directory via loop.

# Mount-o Loop Rhel-server-5.4-i386-dvd.iso/media/cdrom



Then, edit the Yum source configuration file and add a local Yum source. Here is a rhel5u4 DVD installation disk, its repo corresponds to <cdroot>/server.

# cat >/etc/yum.repos.d/dvd.repo <<end
[DVD]
Name=install DVD
Baseurl=file:///media/cdrom/server
Enabled=1
Gpgcheck=0
END



For Fedora, a default remote yum source exists after installation, it is recommended to temporarily disable these remote Yum sources by setting "Enabled=0" in the *.repo file before filling the RPM package. This will force Yum to use only local discs as the source of installation, and never waste time with external downloads.
==================
Note that it is not possible to unzip the ISO file, but to configure it to the RPM file storage directory.

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.