I'm creating a local copy of rpmforge on a RHEL5 host.# reposync --repoid=rpmforge --download_path=/var/www/html/yum# cd /var/www/html/yum/rpmforge; createrepo --database .I have a repository entry for this local repo, in addition to the remote repo. Then I do a yum clean all and yum list local-rpmforge.# yum list local-rpmforgeLoaded plugins: rhnplugin, securityThis system is receiving updates from ULN.http://${hostname}.${fqdn}/yum/rpmforge/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>Trying other mirror.Error: Cannot retrieve repository metadata (repomd.xml) for repository: local-rpmforge. Please verify its path and try again.However, curling the url gets me immediate output!# curl http://${hostname}.${fqdn}/yum/rpmforge/repodata/repomd.xml<?xml version=1.0 encoding=UTF-8?><repomd xmlns=http://linux.duke.edu/metadata/repo>  <data type=other_db>...(${hostname} and ${fqdn} are obfuscations to appease my security group. In the actual commands, the explicit internal hostnames and subdomains are given. This problem is entirely internal. No firewalls or proxys are involved or needed. My test server and client are on the same subnet. wget downloads the file just as easily as curl does.)What in the world? This is not the only repository to fail, but other local repositories created with the same methods are fine.
Yum can't download, but curl is fine?
rhel;yum
I did it again! This time, I figured out what I did a year ago, and repeated it.This particular host holds the local yum repositories, so /etc/yum.conf is configured with proxy information to get out of my firewall and download the current RHEL packages.However, comma, I neglected to add the line proxy=_none_ to the internal repository configurations in the internal /etc/yum.repos.d/*.repo files. So, yum was trying to hit the proxy for hosts inside the firewall and the firewall was rightfully refusing the connection.So, the final comments above had it right. It was the proxy, but in the reverse meaning. I was trying to hit the proxy when I shouldn't have been.