Here is my script for doing this: ------------------------ #!/bin/bash # If /var is full then we couldn't install or upgrade anything anyway df -h /var | grep -q 100% && echo Exiting yumupdate - /var is full && exit 1 # Test lockfile's existence, if it doesn't exist, create it if [ -f /var/run/yumupdate ]; then echo Exiting yumupdate - yumupdate already running exit 1 else touch /var/run/yumupdate fi # Run yum itself, then clean the cache/packages/headers/metadata it downloaded nice yum -e 0 -d 0 -y --disablerepo='*' --enablerepo=*-update update nice yum -e 0 -d 0 -y --disablerepo='*' --enablerepo=*-install \ install "*" 2>&1 | grep -v "No Match for argument" yum -e 0 -d 0 clean all # Clean up lockfile and exit cleanly rm -f /var/run/yumupdate && exit 0 ------------------------ Using wildcards with *-update and *-install is very convenient. Joshua On Sun, Jun 05, 2005 at 05:49:21PM -0400, 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 > > > > LEGAL NOTICE > Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. > > _______________________________________________ > Yum mailing list > Yum@xxxxxxxxxxxxxxxxxxxx > https://lists.dulug.duke.edu/mailman/listinfo/yum -- Joshua Jensen joshua@xxxxxxxx "If God didn't want us to eat animals, why did he make them out of meat?"