[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Yum automatic updates
- Subject: [ale] Yum automatic updates
- From: pizza at shaftnet.org (Stuffed Crust)
- Date: Wed May 5 11:43:47 2004
- In-reply-to: <1083767435.3542.150.camel@devel>
- References: <1083767435.3542.150.camel@devel>
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