how to set proxy for rpm and yum
I am trying to follow the "fedorafaq.org" instruction to set up yum. I was able to set proxy for wget through /etc/wgetrc and did
"wget http://www.fedorafaq.org/samples/yum.conf". It went well. When I try rpm -Uvh http://www.fedorafaq.org/yum http://rpm.livna.org/livna-release-5.rpm PHP Code:
I did try downloading "yum" and "livina-release-5.rpm" and issued "rpm yum livina-release-5.rpm" (is this the same thing as using "rpm http://..."?). It went well, but yum still does not work. I did put proxy, proxy_username, proxy_password in yum.conf. Does the location matter in that file? Here is part of the error message when I issue "yum list available" PHP Code:
|
execute the following command
Code:
# export http_proxy=http://you_proxy_server:port |
From the Unofficial Fedora FAQ:
For more info about yum, see the yum project page. (Thanks to Ron Kuris for this tip.) To get yum through a proxy, see the Fedora documentation about yum and proxies. BTW: if you just want to display a code box rather than the colorful php-code box, just use "code" in square brackets. |
Thanks,
Now I got it work by setting: export http_proxy=http://username:password@proxyserver:8080/. It seems the only way. I tried setting proxy in GNOME, in yum.conf, and creating script file setting http_proxy. They all didn't work. Why this scrip does not work? Quote:
Anybody bother to tell me why? |
Quote:
|
All times are GMT -5. The time now is 03:26 PM. |