Binary upgrade NetBSD

From ezUnix
Revision as of 15:22, 30 October 2012 by YazzY (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
                                    pdf_icon.png Download this article as a single PDF document 


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

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


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.

<comments />
Talk:Binary upgrade NetBSD