& Nbsp; Step 1: First mount the iso file to the virtual drive: mount-oloop-tiso9660/mnt/cdrom note: 1. will replace with the address of your iso file such as/Fedora-8-i386.iso2. if you/mnt does not have the cdrom directory, you can create a new folder named "cdrom 2 ".
Step 1: First mount the iso file to a virtual optical drive:
Mount-o loop-t iso9660/mnt/cdrom
Note:
1. replace with the address of your iso file such as/Fedora-8-i386.iso
2. if you/mnt do not have the cdrom directory, you can create a new folder named cdrom.
Step 2: modify the location of the yum repository file:
Because Fedora's "Add/Remove Software" seems to have integrated some functions similar to yum. Every time you open it, it will search for the list of installation packages online. it will take a while (super annoying ). If you don't want it to search online, but simply add or delete software locally, you need to adjust the location of the yum repository file. That is, to back up the files in/etc/yum. repos. d/to another place. I chose to create a directory in the directory and place it.
Create a file with the. repo extension. Note that the file is stored in the directory of/etc/yum. repos. d. For example, I am CDROM. repo, and the path is/etc/yum. repos. d/CDROM. repo. the content is as follows:
[Core] Note: it must not be changed here; otherwise, a software Baotou Download error may occur.
Name = CDROM
Baseurl = file: // mnt/cdrom note: Here is the path to attach your CD
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // mnt/cdrom/RPM-GPG-KEY note: Here is the authentication file that specifies the RPM-GPG-KEY in the disc
Note: You must modify the remarks according to your location.
Okay. now you can safely open "Add/Remove Software. Wait a moment and wait for it to search for the installation package to start adding/deleting programs.