CVSup update or upgrade

Erik Trulsson ertr1013 at
Fri Feb 1 06:15:08 PST 2008

On Fri, Feb 01, 2008 at 07:41:24AM -0500, Gerard wrote:
> On Thu, 31 Jan 2008 19:57:49 -0600
> Chris <racerx at> wrote:
> > Assuming you went from 6.3-RELEASE to 6.3-STABLE and also assuming you
> > do not have customization in /etc - here's what I do...
> > 
> > After a cvsup of the src tree (ensuring I want the STABLE branch
> > (*default release=cvs tag=RELENG_6) 
> > 
> > # cd /usr/src
> > # make buildworld
> > # make buildkernel KERNCONF=GENERIC (Assuming you use GENERIC)
> > # make installkernel KERNCONF=GENERIC (Assuming you use GENERIC)
> > # shutdown -r now (no need for Single-User Mode if YOU are the only
> > user)
> You can just type: "shutdown now" to go into single user mode. It
> avoids the reboot sequence.

Going to single user mode is the less important part of rebooting.
The other part is that after the reboot you will be running the *new* kernel
which might possibly be needed for a successful installworld.  It is also a
good test that the new kernel actually work.  If the new kernel should fail
to work it is fairly easy to use the old kernel instead.  If you have
already overwritten all userland programs with ones which require the new
(non-working) kernel it can be difficult to recover from.

Just going to single user mode without rebooting misses the point.
The important thing is not to go into single user mode, it is to *reboot*
into single user mode (or even into multi-user mode if you want to, but
there are fewer things that can go wrong when going to single user mode.) 

> > # cd /usr/src
> > # make installworld
> I prefer to use the following after "make installworld"
> 	mergemaster -i -v -U
> Read the man pages for mergemaster for further details.
> > # shutdown -r now
> After rebooting, you might want to cd to the /usr/src directory and
> run: 	"make delete-old-libs" to clear out any garbage. It is not
> actually required however.
> -- 
> Gerard
> gerard at
> In the long run we are all dead.
> 	John Maynard Keynes

<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at

More information about the freebsd-questions mailing list