Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-06-2012, 06:19 AM   #1
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
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
Old 01-06-2012, 06:39 AM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003

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


Old 01-06-2012, 08:35 AM   #3
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Original Poster
Rep: Reputation: 14
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.



proxy, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic path (not URL) rewriting with apache? Zippy1970 Linux - Server 2 12-28-2011 07:51 PM
Iceweasel Automatic Proxy Configuration URL dinesh.4126 Linux - Software 1 04-21-2010 04:34 PM
Automatic block sites from checking url IKT Linux - Server 1 10-01-2009 01:11 AM
setting "proxy configuration URL" in browser or KDE/Gnome imputerate Linux - Newbie 3 09-23-2007 11:59 PM
Yum/Gcc/Proxy Configuration dkory22 Linux - Software 1 07-02-2007 09:43 PM > Forums > Linux Forums > Linux - Server

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration