[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Setting a proxy for YUM in a crontab

Matthew Benjamin wrote:
On Fri, 2005-04-08 at 22:41 +0300, Kimmo Koivisto wrote:
On Friday 08 April 2005 22:38, Matthew Benjamin wrote:

Does anyone know how to set a proxy for yum, if you are setting yum to run as a cronjob. I set an export http_proxy="http://proxy.4.me:3128"; in the .bashrc, however this is probably only valid when I login as root.


Add your proxy definitions to the /etc/cron.daily/yum.cron

Better still, add it to /etc/yum.conf (see "man yum.conf" if you're
using the yum 2.2 package from updates-released). You will no longer
then need to set it in the environment.

I tried it didn't work, maybe my syntax is wrong I put in


Is that correct?

I think there are a number of problems here unfortunately.

First, you don't need (or want) the quote marks:

Secondly, yum 2.2.0's proxy support is broken:

If you want to try 2.2.1, I'll have RPMs for it at:
until an official update comes out. This still has issues, but at least can be made to work. Specifying repos by "mirrorlist" is broken, but if you specify your own mirrors using "baseurl" then it handles the proxy properly.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]