Update NetBSD

General

Just like any of the BSDs, NetBSD can be upgraded by grabbing the latest builds and compiling them from the Internet. Below are the steps to perform this.

Using CVS

Here we need to use CVS to download the latest builds.

setenv CVS_RSH ssh
setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
cd /usr/src
cvs update -rnetbsd-2-0 -Pd
cd /usr/xsrc
cvs update -rnetbsd-2-0 -Pd

Compiling the Kernel

The kernel needs to be recompiled with the updates.

mkdir /usr/obj
./build.sh tools kernel=GENERIC
cd /usr/src/sys/arch/i386/compile/obj/GENERIC
make install
reboot

Compile and Install

mkdir /usr/build
cd /usr/src
./build.sh -U -x -D /usr/build distribution install=/

etcupdate -a

setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
setenv CVS_RSH ssh
cd /usr/pkgsrc; cvs update -Pd
pkg_chk -u

Speak Your Mind

*