This is about updating FreeBSD once you have broken free of binary updates – probably not the best thing to do, but I needed to do it for various reasons. This isn’t a recommended method; merely the method I use. It is more about gathering the instructions I need.
First update the source :-
cd /usr/src make update SVN_UPDATE=yes
Next step is to build the world :-
make -j 4 buildworld
This step takes quite a while, so it’s very helpful to add the “-j 4” to build in parallel.
The next step is to build the locally configured kernel. This usually starts with configuring it, but comparing the GENERIC configuration with the local configuration shows that in my case at the time of writing I didn’t have to re-configure.
make buildkernel KERNCONF=${NAME-OF-YOUR-CONFIG}
Once built the kernel needs to be installed :-
make installkernel KERNCONF=${NAME-OF-YOUR-CONFIG}
Next is to boot to single user mode which is done by pressing a key other than Return during the 10 second countdown, and entering boot -s at the prompt. Once booted into single user mode, the following steps need to be taken :-
# mount -u /; zfs mount -a (To mount all filesystems with zfs in read-write mode) # mergemaster -p (To start the update of the configuration files) # cd /usr/src # make installworld (To install the new user land) # mergemaster (To complete the update of the configuration files) # make delete-old
That’s it for single-user mode. Now reboot into full multi-user and carry on …
Next step is to update the ports :-
# portsnap fetch # portsnap update # pkgdb -F # cd /usr/ports/ports-mgmt/portupgrade # make deinstall # make install clean # portupgrade -af --batch
This of course takes a very long time to complete.
And that should be it … seems to have been successful for me.