[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Yum automatic updates
- Subject: [ale] Yum automatic updates
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Wed May 5 12:07:22 2004
- In-reply-to: <[email protected]>
- References: <1083767435.3542.150.camel@devel> <[email protected]>
On Wed, 2004-05-05 at 11:31, Stuffed Crust wrote:
> 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?
I think you are right. I thought one time it wanted to install all
updates. Maybe I used the command 'install updates' ?
>
> - Pizza