Subject: Re: upgrade from 2.0 to 2.0.2
To: Alex Cavnar <alc6379@gmail.com>
From: Peter I. Hansen <pih@xbase.dk>
List: netbsd-help
Date: 04/15/2005 18:12:40
Alex Cavnar wrote:
> On 4/15/05, Peter I. Hansen <pih@xbase.dk> wrote:
> 
>>In other words a complete upgrade with the GENERIC kernel would
>>be made with:
>>
>>cd /tmp
>>ftp
>>ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/
>>bi
>>prompt
>>mg *tgz
>>bye
>>
>>rm etc.tgz kern-GENERIC.MP.tgz kern-GENERIC_*.tgz
>>for i in *tgz
>>do
>>tar xpfz $i -C /
>>done
>>
>>If this is correct, it could easily be run as an upgrade script.
>>
>>-Peter
>>
> 
> That's a good idea, except I would use wget, rather than your simple
> FTP client:
> 
> 
>>cd /tmp
>>ftp
>>ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/
>>bi
>>prompt
>>mg *tgz
>>bye
> 
> 
> Could be shortened to:
> 
> cd /tmp
> wget ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/binary/sets/*tgz
> 
> rm etc.tgz kern-GENERIC.MP.tgz kern-GENERIC_*.tgz
> for i in *tgz
> do
> tar xpfz $i -C /
> done
> 
> Just a simpler way of doing things, 
> --Alex Cavnar

Yes. This would make a shorter script, but then you would have 
to install wget. I know wget is a small package, but still.

The more important thing is to get the procedure verified. For 
example; there is no postinstall in this, and I'm not sure how 
that works. Specially since that seems to come with etc, and we 
delete that here.

I will have to try this out on a test-PC, before I gamble with 
my production system.

-Peter