NetBSD binary upgrade

To upgrade the NetBSD from one version to another (greater), grab the archives from the nearest mirror. By default, check here.

Start booting the new kernel :

# tar xzpvf kern-GENERIC.tgz -C /
# reboot

If everything went well, you can proceed to upgrading the userland:

# for i in base comp games man misc text x*; do
tar xzpvf $i.tgz -C /
done
# mkdir /tmp/tmproot
# tar xzpvf etc.tgz -C /tmp/tmproot
# postinstall -s /tmp/tmproot check
# (.. run the command postinstall gave you ..)
# etcupdate -s /tmp/tmproot
# reboot

You should now have an upgraded (and still working system). Proceed to the packages upgrade (using pkg_add -uu or pkg_chk).

1 Comment

  • Frequency scaling on k8-class processors with NetBSD « threebsd Mon, 27 Feb 2012 18:21:17 +0000 Reply

    […] get it to work, and from the mailing lists archives I gathered that it works on HEAD. I followed this example to do a binary upgrade and now it works, as seen by doing ‘sysctl -a | grep powernow’. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

%d bloggers like this: