Adding the Fedora Install DVD to Your Yum Repo List

I recently performed a major upgrade on my file server this week. It was a lot harder than it should have been, but that’s only because my Linux Foo can only go this far. Two to three re-installs later on the new hardware it was getting old, so I told the Fedora installer to just do the base package and I would worry about the rest later.

Worry is not my middle name, but frustration might be. For reasons unknown to me I thought I could just do an “upgrade” from the installer. Wrong. Then I thought maybe I could boot normally, insert the DVD, and I could then select it as a package source. Wrong. Download all those packages I missed the first time around isn’t an option on slower-than-molasses connection I have at home. So I did what any other self-respecting nerd would do – turn to Google.

The trick lies in the Yum Repos list, located in /etc/yum.repos.d/fedora.repo

Check it out. Normally you have three entries: Fedora, a Debug branch, and a Sources branch. The primary Fedora branch configs look something like this (I’m using Fedora 10 in my example) :

name=Fedora $releasever - $basearch

Our job is to copy and modify it so Yum and the GUI app manager can use the DVD. First you need to copy the block of code pertaining to [fedora] and paste the copy into your file – after [fedora] is fine.

  1. Change the line [fedora] to [fedora-dvd]
  2. change the name line to name=Fedora 10 x86_64 - DVD
  3. change the baseurl line to baseurl=file:///media/Fedora%2010%20x86_64%20DVD (the path to your DVD might be different – check it first)
  4. delete the mirrorlist line
  5. make sure the enabled line is enabled=1 (you can turn it off later through the “Software Sources” app)
  6. Save and exit

Use Yum or the Application manager to install. Rather than taxking your network and your patience you’ll see the DVD activity light busily blinking as you begin installing packages. One tip you might need to keep in mind is that refresh packages button on the package manager. There were a few packages I tried installing that were no longer available when I turned-off the net-based repo source. This is equivalent to yum clean [option]

Happy installing!

Join the Conversation


  1. Even better would this work:


    That way the same repo file would work on any future Fedora version and arch since it’s based on the standard $releasever and $basearch
    variables (assuming Fedora doesn’t change the naming scheme of the DVD)

  2. i want to use fc11 dvd repository
    but i had followed ur proc but i get error:

    [root@localhost ashwin]# yum install localinstall /media/DVD/Packages/ktorrent-3.2.1-1.fc11.i586.rpm
    Loaded plugins: refresh-packagekit
    file:///media/DVD/repodata/35d817e2bac701525fa72cec57387a2e3457bf32642adeee1e345cc180044c86-primary.sqlite.bz2: [Errno 4] IOError:
    Trying other mirror.
    Error: failure: repodata/35d817e2bac701525fa72cec57387a2e3457bf32642adeee1e345cc180044c86-primary.sqlite.bz2 from fedora: [Errno 256] No more mirrors to try.

    1. Did you try Mark’s suggestion above? Otherwise, check to make sure you have the correct path to the DVD. And honestly, I’m not well-versed enough with yum/rpm to tell you what’s going on when you try to add the RPM file to your list of “mirrors.” There are probably other tutorials out there that can address that better than me.

Leave a comment

Hey there! Come check out all-new content at my new!