Re: "yum update" failed behind corporate proxy
Hou Xiang ZHU <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
I tried this , same result. C. Daniel Chase 写道: > On 11/21/2007 11:39 PM, Hou Xiang ZHU spoke thusly: > >> Hi, I have F7 installed and when I connect to Internet using ADSL >> connection, >> "yum update" works. >> >> but when I connected inside corporate network, it must go through proxy. >> >> I tried many ways to set proxy, all failed. >> >> my proxy need username and passwd, and in my username, there is a >> "space" and "-", is this causing problem? >> >> Thanks, >> Houxiang >> >> >> The following is the log. >> >> >> -------------------------------- >> [root@localhost ~]# http_proxy="yyy-zzz xxx:[email protected]:80" >> > > I have never had to work with a proxy, but I can tell you you need an > 'export' to properly set any environment variable so it can be used by > other programs. > > Try: > > # export http_proxy="... > > OR > > # http_proxy="... > # export http_proxy > > Oh, and in this is your login to the proxy, it is not strictly in the > http URL, so it should not need to be encoded using %20 for the space. > Though that is dependent on the proxy, so I would try it both ways. > > Good luck! > > -Dan > >