Re: yum from cron setting http_proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



skvidal@xxxxxxxxxxxx (seth vidal) writes:

>> >> >> But be warned; yum's proxy support is not complete as it does not
>> >> >> support $no_proxy.
>> > ...
>> > The proxy handling in yum-HEAD is much improved for setting proxy
>> > options. It is set per-repository stanza so you don't have one global,
>> > clumsy proxy variable to work with.
>> 
>> Mmmh, please do not invent yet-another method for setting up the
>> proxy. $*_proxy and $no_proxy environment variables are already
>> supported by the most applications and are handling 98% of all
>> practical cases.
>
> There is no way to set a proxy for multiple repositories when you have
> different urls in the list of baseurls.

This is probably one of the remaining 2% of cases ;) But I do not see
much sense in such a configuration. Saying for the http:// schema: "when
$http_proxy is set and host does not match a $no_proxy entry, then use
$http_proxy. Else, use direct connections" is the normal case, and is
*not* supported by yum/urllib.

This method works well on CLI tools (wget, curl) and browsers (w3m,
lynx, konqueror) which are specialized on WWW-access, and it can be set
globally (e.g. with a /etc/profile.d/ script). I do not know, why yum
would need a yet-another proxy-configuration.



Enrico



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux