LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Using an Automatic Proxy Configuration URL with Yum (http://www.linuxquestions.org/questions/linux-server-73/using-an-automatic-proxy-configuration-url-with-yum-922372/)

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
Code:

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

proxy = http://automaticproxyconfigurl
it does not work

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

corp769 01-06-2012 07:39 AM

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

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.

Thanks.


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