Binary upgrade NetBSD
From ezUnix
Download this article as a single PDF document
Introduction
To upgrade the NetBSD from one version to another (greater), grab the archives (sets) from the nearest mirror.
By default, check ftp://ftp.netbsd.org/pub/NetBSD/
New kernel
After you downloaded a new kernel image and the modules set, extract them to the / directory and reboot your computer:
# tar xzpvf kern-GENERIC.tgz -C / # cd / # tar -zxpf ~/modules.tgz # reboot
Userland
If everything went well, you can proceed to upgrading the userland:
# cd / # tar -zxpf ~/base.tgz # tar -zxpf ~/comp.tgz # ...
Update /etc
postinstall(8) will first check and fix most things that can be automated, and etcupdate(8) in the second step will ask on what to merge:
# /usr/sbin/postinstall -s ~/etc.tgz check # /usr/sbin/postinstall -s ~/etc.tgz fix # /usr/sbin/etcupdate -s ~/etc.tgz # shutdown -r now
You should now have an upgraded (and still working system).
You can proceed to the packages upgrade (using pkg_add -uu or pkg_chk).
That's all folks.
Marcin
<comments />
Talk:Binary upgrade NetBSD