Monday, January 21, 2008

Painless FreeBSD upgrade (6.2 to 6.3)

Just follow the steps below to upgrade to FreeBSD 6.3 (taken from the FreeBSD 6.3 release notes). Earlier in this blog I wrote about upgrading my Dell Inspiron 3500 laptop and my wiki server from FreeBSD 6.1 to 6.2. This was a painless process thanks to the fine folks at FreeBSD. Well, now that 6.3 is out, the upgrade to 6.3 was even easier.

FreeBSD Update

Starting with FreeBSD 6.3, the freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems systems running earlier FreeBSD releases, release candidates, and betas. Users upgrading to FreeBSD 6.3 from older releases (in particular, older than 6.3-RC1) will need to download an updated version of freebsd-update(8) that supports upgrading to a new release.

# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz

Downloading and verifying the digital signature for the tarball (signed by the FreeBSD Security Officer's PGP key) is highly recommended.

# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz.asc

# gpg --verify freebsd-update-upgrade.tgz.asc freebsd-update-upgrade.tgz

The new freebsd-update(8) can then be extracted and run as follows:

# tar -xf freebsd-update-upgrade.tgz

# sh freebsd-update.sh -f freebsd-update.conf -r 6.3-RELEASE upgrade

# sh freebsd-update.sh -f freebsd-update.conf install

The system must be rebooted with the newly installed kernel before continuing.

# shutdown -r now

Finally, freebsd-update.sh needs to be run one more time to install the new userland components, and the system needs to be rebooted one last time:

# sh freebsd-update.sh -f freebsd-update.conf install

# shutdown -r now

For more information, see:

http://www.daemonology.net/blog/2007-11-10-freebsd-minor-version-upgrade.html

1 comment:

Michaela said...

Hi there,

I discovered your blog while Googling for a simple doc on upgrading from FreeBSD v6.2 to v6.3. As you're well aware, the "eol" cycle for FreeBSD v6.2 came to light on June 1st. Running my Dell PowerEdge 2550 server (Dual 1.2Ghz Processors, 2Gigs-RAM, over 100G RAID-5 Array), as a work and home server I knew I needed to get this puppy upgraded and fast! But I also knew that upgrading can be a very scary chore. Nonetheless, I came across your blog and used the FreeBSD upgrade-tool that you recommended, and I must say you're absolutely RIGHT!! I couldn't believe how easy it was!! The whole task took less than an hour!

Thank You very much for your help and service to the FreeBSD community! I'll definitely pass your blog on to others. Keep up the good work!!! :)

Michael A., Boston, Massachusetts