Post-Install update steps?

Andrew P. infofarmer at
Sun Jan 22 07:07:10 PST 2006

On 1/22/06, Xn Nooby <xnooby at> wrote:
> After installing FreeBSD, I would like to follow some simple steps to get it
> fully up-to-date.  The Handbook and other online instructions seem a bit
> overwhelming.  I developed some instructions when I was experiementing with
> 5.x, and I'm not sure if the are still valid for 6.x.  Do these instructions
> look okay, or should I be using something else?

You might want to do "portsnap fetch && portsnap extract"
before doing anything with ports on a fresh system. It will
download and extract the latest ports tree in just a few

> cd /usr/ports/editors/nano
> make install clean
> cd /usr/ports/net/cvsup
> make all install clean

Why do you install net/cvsup? cvsup-without-gui is
actually cvsup itself, just without gui.

> cd /usr/ports/net/cvsup-without-gui
> make all install clean
> cd /usr/ports/sysutils/portupgrade
> make install clean
> rehash
> cd /usr/src
> cp /usr/share/examples/cvsup/stable-supfile .

You'd be better off keeping your supfiles somewhere
in /root

> cp /usr/share/examples/cvsup/refuse .

/usr/src is not the place for a refuse file. Just skip this,
it won't really harm you in any way.

> nano -w stable-supfile
>   *host =
>   *default release=cvs tag=RELENG_6

Reconsider using -stable. If you're not that familiar
with FreeBSD, stay on the safe side (i.e. security
updates branch) and change RELENG_6 to

> ...
>   ports-all tag=.

You'd better keep ports updated with portsnap(8)

>   doc-all tag=.
> cvsup -g -L 2 stable-supfile
> make buildworld
> make buildkernel KERNCONF=GENERIC
> make installkernel

Just "make kernel" instead of these 2 lines

> shutdown -r now

I'm under impression that this reboot is superfluous

> shutdown now
> cd /usr/src
> make installworld
> mergemaster
>   delete hosts file !

Delete it? Just do not let mergemaster change it

>   run MAKEDEV at end !

Nope, you don't run it now that we have devfs

> shutdown -r now
> portsdb -Uu

If you followed my advice and use portsnap instead
of cvsup for ports, you'll need just "portsdb -u"

> portversion -l "<"

I like "portversion -L=" more

> portupgrade -arR

Just "portupgrade -a". -r and -R are ignored if -a is set.

> reboot

You'll be on the safe side using "shutdown -r now" until
you know exactly how "reboot" differs. I still don't :-)

And - last but not least - read the Handbook. If you really
really can't, save yourself a great deal of time and use
Linux or Windows. [ You'll save yourself an even greater
deal of time if you read the docs and forget about the
two latter OSes ]

More information about the freebsd-questions mailing list