Re: Setting a proxy for YUM in a crontab

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

 



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

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux