Update, build and install world and kernel

Upgrading ancient FreeBSDs

by ross at 08:06:31 on October 2, 2012

There is an excellent guide on upgrading old FreeBSD installations up to the latest release:


I have personally upgraded four machines using this guide. The oldest was 6.2.

The article needs a little correction, for example, in upgrading 6x to 7x:

o # install backward compatibility files 
  # ("locale data" to /usr/local/share/compat/, "libraries" to /usr/local/lib/compat/)
  # notice: via binary packages as FreeBSD 7.x ports cannot be installed under FreeBSD 6.X
  $ url="ftp://ftp.freebsd.org/pub/FreeBSD/ports/`uname -m`/packages-7-stable/All"; \
    ( cd /tmp; for pkg in localedata-5.4.tbz compat6x-`uname -m`-6.4.604000.200810.tbz; do \
        fetch -p $url/$pkg; pkg_add $pkg; rm -f $pkg; \
    done )

The compatibility package name is actually:

compat6x-`uname -m`-6.4.604000.200810_3.tbz

And in upgrading 8x to 9x the compat8x package is actually:

compat8x-`uname -m`-8.2.802000.201203.tbz

But you can probably figure that out on you own if you are experienced enough to upgrade old FreeBSDs.