Red Hat Bugzilla – Bug 190511
'yum -c' doesn't work with http url
Last modified: 2014-01-21 17:54:25 EST
Description of problem:
According to the yum man page 'yum -c' can specify a local file or a
http or ftp url as the location of the config file. This has always
worked with previous releases but with FC5 it fails.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. put a yum config file on a web server
2. yum -c http://web.server/path/to/yum.conf
Config Error: No such config file http://...
Yum should fetch the config file from the web server.
wget fetches the config file from the same URL so the problem is
not with the URL or the web server.
tcpdump on the web server doesn't show any connection from the
client which indicates yum isn't trying to fetch it as a URL
but looking for it as a file.
when I created a directory with the path http://... and copied the
yum.conf file into that directory 'yum -c http://...' worked.
Indicates that yum is treating the URL as a path.
I'll take a look at this.
*** Bug 197023 has been marked as a duplicate of this bug. ***
Fixed in FC6. yum-3.0-6.
Yep, thanks for updating the bug and confirming!
Well, FC5 is as broken as it was. Just had a nasty encounter with