PDA

View Full Version : yum and http proxy auth


pinguingilo
21st December 2006, 05:44
Hi, how can i configure yum to authenticate with an http proxy that requests an
user and password? �
I've tried this:
export http_proxy="http://user:password@x.x.x.x:8080" but it doesn't work...
any ideias on how to do this ? I use FC 5...here my yum.conf :

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
http_proxy=http://username:password@x.x.x.x:8080
export http_proxy
obsoletes=1
gpgcheck=1
plugins=1

Ben
21st December 2006, 11:38
I just do this with a shellscript.
I attached them.
proxy_direct just sets http + ftp proxy (upper + lowercase, maybe that's the problem in your case). Just change USER, PASS + proxyurl + port

the other one contains two scripts infotext_proxy + proxy.sh.
It uses dialog to ask the user for proxy + pass, and sets the proxydata with that.
In proxy.sh you have to change the porxy url + the path, where the script is located, because it has to remove the dialog generated files.

hth

remove .txt from all files...