Wednesday, December 11, 2013

FreeBSD 9.1 to 9.2 Upgrade with freebsd-update

FreeBSD 9.2 brings a very nice update to ZFS : LZ4 compression.  Upgrading from 9.1 to 9.2 is quite easy if you have a standard install (no customization of the code).


The basic process, which should work for other versions as well is this:

1) Get your system up-to-date with the latest patches for your version of FreeBSD. This isn't necessary, but I think may avoid some problems.

freebsd-update fetch
freebsd-update install
reboot

2) Upgrade the kernel

freebsd-update upgrade -r 9.2-RELEASE
freebsd-update install
reboot

3) Update userland (finishes off the 2 part install)

freebsd-update install
reboot

4) Update pkg if needed

pkg update

5) Enjoy

With my 9.1 -> 9.2 update, I didn't have any messy mergemaster conf files to pour through, nor did my packages notify me that I needed to upgrade them - One of the more painless upgrades I've made.

2 comments:

  1. # freebsd-update fetch
    Looking up update.FreeBSD.org mirrors... 5 mirrors found.
    Fetching metadata signature for 9.1-RELEASE from update6.freebsd.org... done.
    Fetching metadata index... done.
    Inspecting system... done.
    Preparing to download files... done.

    The following files will be added as part of updating to 9.1-RELEASE-p10:
    /usr/src/crypto/openssl/ssl/s3_cbc.c

    :(

    ReplyDelete
    Replies
    1. Hey,

      I get that too, but it doesn't stop my update. Does it stop yours?

      Delete