[Yum] cron automated "update" & "install" centrally located

Sean Dilda agrajag at dragaera.net
Thu Jun 23 15:11:38 UTC 2005


Prayther, Aaron wrote:
> I'm new to YUM but was looking for a way to manage a number of systems,
> more or less centrally.  The key was that I wanted to not only to
> "update" but "push" and... I think... this is going to work for me.
> 
> Is this an appropriate way to achieve a centrally managed update and
> push?
> 
> #!/bin/sh
> 
> if [ -f /var/lock/subsys/yum ]; then
>         /usr/bin/yum -R 10 -e 0 -d 0 -y -c http://ljads2/rhel4/yum.conf
> update yum
>         /usr/bin/yum -R 120 -e 0 -d 0 -y -c http://ljads2/rhel4/yum.conf
> update
>         /usr/bin/yum -R 120 -e 0 -d 0 -y -c http://ljads2/rhel4/yum-
> push.conf install
> fi

Didn't think a 'yum install' with nothing specified to install would 
work.  Have you considered a groups xml file in your yum repo and doing 
a 'yum groupupdate <group name>' ?



More information about the Yum mailing list