mergemaster – a great tool when upgrading

mergemaster is a tool which can greatly ease the reconciliation/merge of your
old and new /etc directory. This merge is a frequently performed step of
the upgrade process. Once you’ve done that by hand and then used mergemaster,
you’ll never do it manually again.

From man mergemaster:

mergemaster is a Bourne shell script which is designed to aid you in
updating the various configuration and other files associated with
FreeBSD. It is HIGHLY recommended that you back up your /etc directory
before beginning this process.

Installing mergemaster

When I wrote this article, mergemaster was not in the base system. To
check whether or not it’s already in your system, try the following command:

# which mergemaster
/usr/sbin/mergemaster

If you get an answer, then you don’t have to install mergemaster and should
skip to the part about running mergemaster.

After looking at man mergemaster, I decided to run it with the following
command:

# /usr/local/sbin/mergemaster -svd -w120

I just followed the instructions. Be careful about merging binary files. I
did that and it messed up my screen. I had to logout and restart my telnet session
to clear it. And when I restarted mergemaster, here’s the line I used:

The actual directory will be dependant upon the date and time you ran mergemaster.
At the end of the process, all files will have been merged and whatever is left in.
Another thing I did during this process was change my default editor. For
some reason, it was vi and I prefer ee.