[K12OSN] I miss RHN

Dan Young dan_young at parkrose.k12.or.us
Fri Aug 20 23:46:41 UTC 2004


Taking a page from Larry Wall:
http://c2.com/cgi/wiki?LazinessImpatienceHubris

Laziness:
I'm tired of ssh'ing to every server to run yum to see if updates are
available.

Impatience:
Doing the above takes too much time.

Hubris:
Assuming anybody would find this useful while simultaneously invoking
Larry Wall to describe a shell script running a python program. ;-)



#!/bin/sh
# Run me in your crontab in the wee hours
 
YUM="yum -d 0 -e 0"                  # be quiet
 
if $YUM check-update &> /dev/null    # if yum returns zero
then                                 # then
    :                                # do nothing
else                                 # else
    echo "updates for `hostname`"    # tell me
    $YUM -C list updates             # what updates are there?
fi                                   # done


--
Dan Young
Parkrose School District





More information about the K12OSN mailing list