Update OpenBSD

General

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

Note:This example uses the sparc64 architecture. Please be sure to select the appropriate one for your computer.

Using CVS

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

# cd /usr/src
# cvs -d anoncvs@anoncvs.uk.openbsd.org:/cvs up -Pd
# make -k cleandir
# rm -rf /usr/obj/*
# make obj

# cd /usr/ports
# cvs -d anoncvs@anoncvs.uk.openbsd.org:/cvs up -Pd
# make index

# cd /usr/src/etc/mtree
# install -c -o root -g wheel -m 660 special /etc/mtree
# install -c -o root -g wheel -m 444 4.4BSD.dist /etc/mtree
# mtree -qdef /etc/mtree/4.4BSD.dist -p / -u
# cd /usr/src/etc
# env DESTDIR=/ make distrib-dirs

Compiling the Kernel

The kernel needs to be recompiled with the updates.

# cd /usr/src/sys/arch/sparc64/conf/
# config GENERIC
# cd ../compile/GENERIC
# make clean && make depend && make
# cp /bsd /bsd.old
# cp bsd /bsd
# chown root:wheel /bsd
# reboot

Compile and Install the System

# cd /usr/src/
# make build

# cd /dev
# cp /usr/src/etc/etc.sparc64/MAKEDEV ./
# ./MAKEDEV all

# cd /usr/src/usr.sbin/httpd
# make -f Makefile.bsd-wrapper distribution

Install mergemaster to merge the new files with the old.

# cd /usr/ports/sysutils/mergemaster
# make install clean
# /usr/local/sbin/mergemaster
# reboot

Speak Your Mind

*