![]() |
|
||||
![]()
Skript "in action":
Downloading of sets: Code:
nbsd$ ./getset.ksh getsets New version is: 200909140000Z Moving to /home/soxxx/netbsd_sets Downloading set ==> base..tgz.. Requesting http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/200909140000Z/i386/binary/sets/base.tgz 100% |*****************************************************************************| 26241 KiB 189.47 KiB/s 00:00 ETA 26870857 bytes retrieved in 02:18 (189.47 KiB/s) Downloading set ==> comp.tgz... Requesting http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/200909140000Z/i386/binary/sets/comp.tgz 100% |*****************************************************************************| 37822 KiB 189.44 KiB/s 00:00 ETA 38730622 bytes retrieved in 03:19 (189.44 KiB/s) Downloading set ==> etc.tgz... Requesting http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/200909140000Z/i386/binary/sets/etc.tgz 100% |*****************************************************************************| 367 KiB 157.78 KiB/s 00:00 ETA 376257 bytes retrieved in 00:02 (157.75 KiB/s) Downloading set ==> kern-GENERIC.tgz... Requesting http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/200909140000Z/i386/binary/sets/kern-GENERIC.tgz 32% |************************ Code:
nbsd$ sudo ./getset.ksh installkernel We backup old kernel as netbsd.old... Extracting GENERIC kernel to / ... 100% |*****************************************************************************| 11470 KiB 41.90 MiB/s 00:00 ETA New kernel extracted, reboot to boot the new kernel ( yes/no ): n New kernel will boot on next reboot. nbsd$ Code:
nbsd$ sudo ./getset.ksh installsets Extracting set ==> base.tgz... 100% |**************************************************************************************| 77550 KiB 9.82 MiB/s 00:00 ETA Extracting set ==> comp.tgz... 100% |**************************************************************************************| 130 MiB 9.22 MiB/s 00:00 ETA Extracting set ==> kern-GENERIC.tgz... 100% |**************************************************************************************| 11470 KiB 36.95 MiB/s 00:00 ETA Extracting set ==> man.tgz... 100% |**************************************************************************************| 50790 KiB 13.91 MiB/s 00:00 ETA Extracting set ==> misc.tgz... 100% |**************************************************************************************| 12310 KiB 23.33 MiB/s 00:00 ETA Extracting set ==> tests.tgz... 100% |**************************************************************************************| 8410 KiB 5.73 MiB/s 00:00 ETA Extracting set ==> text.tgz... 100% |**************************************************************************************| 9830 KiB 18.97 MiB/s 00:00 ETA Extracting set ==> xbase.tgz... 82% |**********************************************************************
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn. If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD |
|
||||
![]() Quote:
![]() |
|
||||
![]()
The only thing that needs to be changed are probably the arrays and small other things, in order to convert it to sh. I'm not so eager to change it as NetBSD, by default, comes with ksh. In bash case, you'd have to install it first.
![]() While reading the script I spoted one thing though, script was checking for the SHA512 and MD5 later in the script, even though the two were not mentioned in SETS array. In case they were not found on server script would fail. So I just removed it; if one needs it it could be added at the beginning of the script in SETS array. ![]()
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn. If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD |
|
||||
![]()
Few more things, there are two more servers that could be used for downloading of releng sets:
ftp://ftp.jaist.ac.jp/pub/NetBSD-daily/ (via ftp/http/rsync) (info) ftp://ftp.fr.netbsd.org/pub/NetBSD-daily/ (via ftp/http) (info) I believe Europe folks would prefer the closer site. ![]() At the time when I was writing script I did not know of ftp site that provided releng builds. That's why I used awk to parse the output that comes when using http in stead of ftp. Using ftp is much simpler. At the end, a warning/useful info why/who should (not) use the daily builds: http://mail-index.netbsd.org/tech-mi...msg000153.html
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn. If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD |
|
||||
![]() Quote:
(a) there are snapshots out there! (b) how to upgrade by hand without booting an install iso. Thanks for this and the additional info. ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A little confused. Do "snapshots" (vs dump=image) have any correlation, non-unix? | jb_daefo | FreeBSD General | 9 | 21st November 2009 04:41 AM |
Cannot update with CVS | guitarscn | OpenBSD Installation and Upgrading | 3 | 7th September 2009 11:12 PM |
SHA256 replaces MD5 in OpenBSD snapshots | J65nko | OpenBSD General | 3 | 6th May 2009 04:36 PM |
Need to update my FreeBSD...help | jedispy | FreeBSD Ports and Packages | 4 | 9th June 2008 05:34 PM |
Update from 6.1 to 6.3 did nothing? | alanthing | FreeBSD Installation and Upgrading | 4 | 8th June 2008 02:28 PM |