-   Linux - Server (
-   -   Using an Automatic Proxy Configuration URL with Yum (

manyrootsofallevil 01-06-2012 07:19 AM

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

proxy = http://myproxy:8080
but if I set

proxy = http://automaticproxyconfigurl
it does not work

Any ideas?

Am I missing something?



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

corp769 01-06-2012 07:39 AM


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.....



manyrootsofallevil 01-06-2012 09:35 AM

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.


All times are GMT -5. The time now is 05:34 AM.