Red Hat Bugzilla – Bug 473360
yum will not recognize install DVD as repository because of spaces in name
Last modified: 2014-01-21 18:07:13 EST
Description of problem:After install of Fedora 10 x86_64, using the Fedora 10 install DVD as a repository in the yum.conf file fails because it cannot recognize the URL with the spaces in the name. I tried escaping the spaces, quoting, double quoting, nothing worked. Pointed to /media/Fedora 10 x86_64 DVD That might not be right, for some reason the DVD won't mount right now, so I can't look at the name.
Version-Release number of selected component (if applicable):
How reproducible: Every time
Steps to Reproduce:
1. Add the Fedora 10 x86_64 DVD to the /etc/yum.conf file
2. run yum install or update
Actual results: Complains that repository does not exist. "" not valid repository
Expected results: DVD is recognized as a yum repository
Additional info: Copying the contents of the dvd to a directory path with no spaces in the name allows it to work fine as a repository. It seems it would be simple to replace the spaces with underscores or dashes to get around this problem. Or modify yum to look for the trailing / to determine the directory name.
This bug has been triaged.
What did your yum.conf file look like?
For urls - you need to escape the spaces. %20
Sorry, that information is gone and I can't remember exactly.
Here is what worked for me.
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
I copied it from the DVD to the hard drive, giving it a name without spaces and it works fine now.
The original was probably something along the lines of the above with
baseurl=file:///mnt/media/F10 DVD x86_64/
What puzzled me is why the DVD would be named with spaces in the name, causing this problem. Such a simple fix.