By http://blog.csdn.net/liguisen/
After Linux is installed, we usually download the software package from the Internet, but sometimes it takes a long time to download it, or it is caused by the network or the source. But if we do not care much about the software version, we can install it locally, because our installation disk usually contains many common software packages. Let's take fedora 9 as an example to see how to do it.
First, let's take a look at the current installation sources. Open/etc/yum. Repos. D. There are several files in it and you can see which installation sources are available. Assume that we are working in the graphic interface. You can also see from system> Management> Software sources. If you are on a terminal, you can also enter GPK-repo to view software sources.
1. Now go to/etc/yum. Repos. D. If you are worried about modification errors, back up the original configuration first. How can you back up it? The simplest thing is to create a folder old, move all the files to the old folder, create a new file DVD. Repo, and enter the following content: (do not enter the content in the brackets)
[Core]
Name = dvd iso (just a name)
Baseurl = file: // mnt)
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // MNT/RPM-GPG-KEY (the authentication file named RPM-GPG-KEY on the disc)
2. re-enter software sources and you will find that there is only one dvd iso left in the installation source.
3. Mount the disc to/mnt, and then you can add or delete the software package, you can choose "system"> "management"> Add/Remove software from the GUI (the same is true for running GPK-application on the terminal ), you can also find the RPM or yum install Installation Method in the/mnt directory without any worries about package dependencies.
4. To restore the original network installation, just take out the files in the old folder.