Using an Automatic Proxy Configuration URL with Yum
I've been trying to configure yum at work to use a proxy but I'm having no joy. We use an automatic proxy configuration url, which is basically a javascript script with a list of different proxies for different domains.
I can get it to work if I use one of the proxies detailed in pac file, e.g. if I set in yum.conf Code:
proxy = http://myproxy:8080 Code:
proxy = http://automaticproxyconfigurl Any ideas? Am I missing something? TIA P.S. The reason for the question is that I know that the proxies change, not very often, but they do, so it would be handy to be able to use automatic proxy configuration url |
Hello,
Sorry to break it to you, but yum is not designed around automatic proxy configuration files; When the proxy changes, you will have to manually change the proxy variable's value. Now on a side note, you could always write a small script to constantly check the current proxy, and when it drops, to have the script retrieve the new proxy information, substitute it, and echo out to the proxy variable in your yum config/environmental variable. Just a thought though..... Cheers, Josh |
thanks for the quick reply.
To be honest I think the changes are not that frequent, it just took me a while to realize what the problem was, very frustrating I'll have a look at creating a script to check for changes. Thanks. |
All times are GMT -5. The time now is 11:17 PM. |