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.