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.