If you wish to update to 4.2-release or 4.2-stable from previous versions, see the upgrade guide.
Make sure you have read and understood FAQ 5 - Building the System from Source before using -current and the instructions below.
You should ALWAYS use a snapshot as the starting point for running -current. Upgrading by compiling your own source code is not supported.
If you wish to see upgrade information for earlier versions of OpenBSD, see upgrade-old.html. This is provided as a historical record -- it should NOT be used as an upgrade procedure guide.
Support for _cxa_atexit has been added to csu, libc, gcc and libstdc++ as well as changes to sys/net headers require special handling. To upgrade follow these steps:
# cd /usr/src/lib/csu
# make obj && make depend && make && make install && make clean
# cd /usr/src/gnu/usr.bin/gcc
# make -f Makefile.bsd-wrapper obj
# make -f Makefile.bsd-wrapper depend
# make -f Makefile.bsd-wrapper
# make -f Makefile.bsd-wrapper install
# make -f Makefile.bsd-wrapper clean
libexpat has been moved from xenocara (xbase) to src (base); if you are using binary snapshots and packages, things will just update as they should, once new snapshots are available.
If you are building software from source, it is vital that
you clean up your system:
# mv /usr/X11R6/lib/libexpat.so.* /usr/lib
# rm /usr/X11R6/lib/libexpat*
# rm /usr/X11R6/include/expat*
# useradd -u90 -g=uid -c"OSPF6 Daemon" -d/var/empty -s/sbin/nologin _ospf6d
This step will add both the new user and its corresponding group.
Your environment may allow you to copy/paste those commands.
Extended capabilities require
config(8) to
be rebuilt on your system:
# cd /usr/src/usr.sbin/config
# make clean
# make obj
# make depend
# make
# make install
Then build and install a new kernel as usual.
The new agp(4) driver requires an update to the X server after installing a new kernel if your machine requires AGP support for X or XVideo.
After installing a new kernel, install new kernel headers, rebuild the X server
(or install a new X snapshot) and make sure /dev/agp0 is created.
# cd /usr/src/include
# make includes
# cd /usr/src/xenocara/xserver
# make -f Makefile.bsd-wrapper build
# cd /usr/src/etc/etc.`uname -m`
# install -c MAKEDEV /dev
# cd /dev
# ./MAKEDEV agp0
Use vipw(8), edit the password files and your favorite editor to edit the /etc/group file, changing "_hoststated" to "_relayd" in both. Leave the rest of the line alone in each case.