Adding Fedora 9 DVD as repository

Tags:

Adding a Fedora 9 DVD as a yum repository is extremely easy in Fedora 9.

For slow internet connections, using yum could be pain, as most of the software can be installed from the DVD itself. But yum resolves dependencies from the net. Adding a Fedora 9 DVD as a repository is like a boon to such users.

Follow the steps using a root user

  1. Pop in your Fedora 9 DVD, It should be automatically mounted on /media/Fedora 9 i386 DVD/ folder
  2. Create a new file fedora-dvd.repo in /etc/yum.repos.d/ folder.
  3. Put the following contents in the file

    [fedora-dvd]
    name=Fedora 9 DVD
    baseurl=file:///media/Fedora%209%20i386%20DVD/
    enabled=1
    
  4. Disable fedora.repo and fedora-updates.repo, by assigning the parameter enabled=0.
  5. Run the command yum repolist
    You should be able to see fedora-dvd as enabled.

Thats should be it. You are free to install packages from the DVD directly.

Thanks

Thanks for providing this information. This is what I have been looking for. But if we add DVD as yum repository will yum be able to solve dependency from the DVD?

yes U will be able to

yes U will be able to resolve dependencies, but u would need to disable the online repositories by using this option --disablerepo=updates

Thank you

Thank you so much for this information. It worked perfectly so I'm now able to install directly from my DVD. I'm still on dial-up which is what I prefer so I'm so happy to be able to get around the always-on, high-speed set-up for sofwtware.