Upgrade from PC-BSD 9.1-RELEASE to PC-BSD 9.2-RELEASE without reinstalling.
If you are like me and
1) are happily running the original PC-BSD 9.1-RELEASE with pkgng support, and
2) don't feel like doing a fresh install because you have too much stuff
around, including jails and what not, but
3) feel like you should be running 9.2-RELEASE, getting security
updates, and new features
here is what I did. There is no guarantee this will work for you, but here it goes:
0) Backup everything, of course, and just in case take a snapshot of tank0 so you can revert there if you screw things badly.
# zfs snapshot -r firstname.lastname@example.org-RELEASE
1) Boot into the console, to minimize the noise in the system. In /etc/rc.conf, set GDM_ENABLE=NO. Reboot.
2) update the base OS to 9.2-RELEASE with freebsd-update:
# freebsd-update -r 9.2-RELEASE upgrade
You may need to reboot and run freebsd-update install, follow the instructions on screen.
You will boot into FreeBSD 9.2-RELEASE, with the silly Nakatomi Socrates thing in the loader menu. That doesn't bother me too much.
3) Set pkgng to use the 9.2-RELEASE repository. In /usr/local/etc/pkg.conf:
4) Update the pkg index and upgrade all packages. I had been updating packages regularly, so this didn't take a long time.
# pkg update
# pkg upgrade
5) OK, now you are only missing the PC-BSD goodies ... you only need to check out the code and install them. You may need to install git to check out the PC-BSD sources:
# pkg install git
Check out the code:
# git clone git://github.com/pcbsd/pcbsd.git
And compile it:
# cd pcbsd/src-sh
# make && make install
# cd ../../pcbsd/src-qt4
# make && make install
I had to rename a file in pcbsd/src-qt4/life-preserver/lp-gui/ from life-preserver.pro to lp-gui.pro. Otherwise everything compiled clean.
6) Re-enable GDM in /etc/rc.conf set GDM_ENABLE=YES
7) Reboot into PC-BSD 9.2!
I still get the FreeBSD 9.2-RELEASE loader menu, but other than that, the new AppCafé is working fine, my jails in Warden still work OK, and all my data and desktop configuration survived.
I know this is not exactly like a PC-BSD 9.2 fresh install, but having all my stuff in place is a greater benefit to me ... If anyone spots something that could have been done better, please correct it.