By Kurt Seifried [email protected],
It doesn't really get much better then: http://www.openbsd.org/faq/upgrade-minifaq.html. I am not going to rehash this page, however I have a quick summary of things Iuse, and some extra tips and tricks.
I use the following commands to keep my machines at OpenBSD-current, they can easily be modified (one line change) to keep a system at 3.2-stable or whatever you want.
The following commands will retrieve the “current” OpenBSD source tree (I like to live on the edge):
export [email protected]:/cvs export CVS_RSH=/usr/bin/ssh cd /usr cvs -q get -P src
Updating the kernel is a pretty straightforward process, make sure you clean up after the last compile, config a kernel, then compile and install it:
rm -rf /usr/obj mkdir /usr/obj cd /usr/src make obj cd /usr/src/sys/arch/i386/conf config GENERIC cd ../compile/GENERIC make clean make depend make cp /bsd /bsd.old cp bsd /bsd
After this script runs you will want to reboot the system.
Updating all of OpenBSD userland (i.e. All programs, libraries, etc, that ship with OpenBSD) is quite simple:
cd /usr/src
make build
After this runs you will probably want to reboot the system if nothing else to ensure the system will reboot properly (better to find out now rather then later).
CVS relies on tags, a CVS repository often hosts different branches and versions of the same project, OpenBSD is no exception. The major OpenBSD CVS servers typically have OpenBSD-current, -stable, -release, as well as previous versions. To keep a system at a “stable” version as opposed to current simply modify the following line:
cvs -q get -P src
To the following:
cvs -q get -rOPENBSD_3_1 -P src
This would retrieve 3.1.
Last updated on 9/7/2002
Copyright Kurt Seifried 2002 [email protected]