我不知道如何使用rpm设置经过身份验证的代理访问。但我已经把它和wget和yum放在一起了。
当我运行rpm -Uvh http://dl.fedoraproject.org/etc..。
它只是说‘检索http://...’,我不知道是怎么回事。
有什么帮助吗?
发布于 2012-07-05 16:48:24
对于RPM,您向--httpproxy
提供的内容将被转发给curl --proxy
。
所以rpm --httpproxy http://foo:bar@proxy.example.com:3128
。
如果要排除故障,可以编辑/usr/lib/rpm/macros
并删除其中的--silent
:
%__urlhelpercmd /usr/bin/curl
%__urlhelperopts --silent --show-error --fail --location -o
%__urlhelper_proxyopts %{?_httpproxy:--proxy %{_httpproxy}%{?_httpport::%{_httpport}}}%{!?_httpproxy:%{nil}}
https://serverfault.com/questions/375399
复制相似问题