[ale] Yum automatic updates
    Stuffed Crust 
    pizza at shaftnet.org
       
    Wed May  5 11:43:47 EDT 2004
    
    
  
On Wed, May 05, 2004 at 10:30:35AM -0400, Chris Fowler wrote:
> #!/usr/bin/perl
> 
> @LINES=`yum list installed`
> 
> foreach my $ref (@LINES) {
>   $ref =~ m/$(\w+)\s/;
>    next unless $1;
>    system "yum update $1";
> }
Wouldn't a straight "yum -y update" accomplish the same thing, and 
considerably faster to boot, since it wouldn't try to check for updated 
headers with every iteration of the loop?
 - Pizza
-- 
Solomon Peachy        				 ICQ: 1318344
Melbourne, FL 					 JID: pitha at myjabber.net
Quidquid latine dictum sit, altum viditur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
    
    
More information about the Ale
mailing list