[K12OSN] I miss RHN
Lewis Holcroft
lewis at pcc.com
Sat Aug 21 03:17:12 UTC 2004
Dan,
I thought the yum daemon did that for you.
Lewis
On Aug 20, 2004, at 7:46 PM, Dan Young wrote:
> 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
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
More information about the K12OSN
mailing list