[Yum] [UG] yum, urlgrabber and no_proxy environment?

Seth Vidal skvidal at fedoraproject.org
Wed Dec 17 19:25:02 UTC 2008



On Wed, 17 Dec 2008, Brian Long wrote:

> Hello,
> I've been poking around trying to get no_proxy working with yum on
> Centos 5.2.  It appears this issue was raised 3 years ago in this
> thread:
> https://lists.dulug.duke.edu/pipermail/yum-devel/2005-June/001274.html
>
> urllib was patched upstream to support no_proxy, but urlgrabber uses
> urllib2 and I have not yet found a patch for it or urlgrabber to fully
> support no_proxy.
>
> I just came across a recent thread from Oct. 2008[1] that seems to say
> no_proxy is still not supported by yum / urlgrabber.  What is the proper
> way to disable proxies per repo if I cannot disable per domain using the
> no_proxy environment variable?
>
> The 2005 thread mentions setting "proxy=_none_" per repo to get around
> the problem but this does not work in v3.2.8.
>
> Any other ideas would be greatly appreciated.  Thank you.

proxy=_none_ works if you're not setting the proxy as a shell env 
variable. If you set it as an env variable then the problem is urllib 
picks it up underneath the urlgrabber layer.

If that is what you're doing then James wrote a plugin to handle just 
that.

http://james.fedorapeople.org/yum/plugins/unset-proxy-env.py

hth.
-sv




More information about the Yum mailing list