Update Yum using an ISO Image

Source: Internet
Author: User
Tags gpg
The. Repo repository files in the/etc/yum. Repos. d directory are all repositories to be downloaded from the Internet. Therefore, we define our own ISO repository.

---------------------------

[ISO]
Baseurl = file: // media/ISO
Gpgkey = file: // media/ISO/rpm-GPG-key-fedora-test

File: /// media/ISO/RPM-GPG-KEY
Failovermethod = Priority
Enabled = 1
Gpgcheck = 0
----------------------------

Add the preceding content to/etc/yum. Repos. d/ISO. repo.

Then Yum update will include all our fc5_i1__dvd software. You can use Yum install to automatically resolve dependencies between packages. It is very powerful ~~

However, we cannot use the optical drive cd every time. The long-term insertion of the CD will affect our "love drive". Solution: Make the DVD into an ISO image.

In Linux, run CP/dev/CDROM/root/system. ISO.

Ultraiso is recommended for Windows.

In the virtual machine, set this system. ISO as the source of the optical drive ~~~

If you think it is difficult to load system. ISO every time, you can add the same content to/etc/fstab.

/Root/system. ISO/mnt/CDROM iso9660 noauto, Ro, user 0 0

Detailed understanding of the fstab file parameters and modification methods, see this classic: http://wiki.linuxquestions.org/wiki/Fstab

OK ~~~ It's amazing ~~~ It's easy.

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.