The Fedora Add/Remove Program, “Pirut” uses the standard command line version of yum as the backend. Yum itself uses a set of repositories to search for components which are to be installed. In the recent releases of Fedora, default yum repositories are internet URLs, therefore, yum cannot work without internet connection. Some people would like to install some packages from the installation media (CD/DVD) without internet connection. For example you’ve just installed FC5 and now you decide to install MySQL from the installation DVD. One way is to copy .rpm files related to MySQL and all dependencies and then use rpm command from terminal to work it out. Another more modern solution is to edit yum repositories so that it does not need internet connection and at last use Add/Remove programs. The following steps describe how to do it. Remember! Before changing anything, make a back-up.
1. Creating DVD image from the installation DVD (you can do it with CDs too):
I think if you like to use Add/Remove programs; you are rather interested in windows approach than Linux command line approach. So, the recommended freeware for creating ISO images of DVDs is MagicISO. Copy the created ISO file to FC5 partitions.
2. Mounting the DVD image:
Use this command to mount DVD image to a dedicated directory:
# mount –o loop /dvd-images/FC5.iso /fedora-dvd
For auto-mounting you can edit /etc/fstab file to mount the DVD image automatically as the system boots.
3. Editing yum repositories:
Open file browser and locate /etc/yum-repos. There are some .repo files each containing records for introducing websites which are used as source for installing new components by yum. You must set enabled in all files and all records to ‘0’ except one in fedora core repository. The first ‘baseurl’ must be set as the address where the DVD image is mounted (/fedora-dvd).
name=Fedora Core $releasever - $basearch
(Sorry for too long message)