To upgrade to the stable release the announce document has an upgrade section:
Upgrading from 8.1-RELEASE to 8.2-RELEASE
# freebsd-update -r 8.2-RELEASE upgrade ... WARNING: This system is running a "aggli" kernel, which is not a kernel configuration distributed as part of FreeBSD 8.1-RELEASE. This kernel will not be updated: you MUST update the kernel manually before running "/usr/sbin/freebsd-update install". So do as the man says: cd /usr/src && make kernel ... # freebsd-update install # reboot
The system must be rebooted with the newly installed kernel before continuing.
And this is where it begins to be important!
If you reboot and you are STILL running 8.2 DO NOT PROCEED!
re-compile a new 8.2 Kernel.
When trying this I had problems with the zfs module. (on 8.0)
By default FreeBSD compiles ALL modules. To persuade it to NOT compile certain modules add this to /etc/make.conf
WITHOUT_MODULES = linux sound ntfs zfs
This will omit the "linux sound ntfs zfs" modules during a Kernel build.
And to be 100% sure you will reboot the right kernel check the timestamp
# date Sun May 9 22:02:14 CEST 2010 # ls -la /boot/kernel/kernel -r-xr-xr-x 1 root wheel 4648089 May 9 22:01 /boot/kernel/kernel
To upgrade to the stable release the announce document has an upgrade section:
Upgrading from 7.2-RELEASE to 8.0-RELEASE
I had massive problems with that upgrade and advise everyone to be very careful at the following.
# freebsd-update -r 8.0-RELEASE upgrade # freebsd-update install # reboot
The system must be rebooted with the newly installed kernel before continuing.
And this is where it begins to be important!
If you reboot and you are STILL running 7.2 DO NOT PROCEED!
What I had to do is re-compile a new 8.0 Kernel. When trying this I had problems with the zfs module. By default FreeBSD compiles ALL modules. To persuade it to NOT compile certain modules add this to /etc/make.conf
WITHOUT_MODULES = linux sound ntfs zfs
This will omit the "linux sound ntfs zfs" modules during a Kernel build.
And to be 100% sure you will reboot the right kernel check the timestamp
# date Sun May 9 22:02:14 CEST 2010 # ls -la /boot/kernel/kernel -r-xr-xr-x 1 root wheel 4648089 May 9 22:01 /boot/kernel/kernel
Upgrading to BETA
eight# freebsd-update -r 8.0-BETA4 upgrade
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 8.0-BETA2 from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.
The following components of FreeBSD seem to be installed:
kernel/generic world/base world/dict world/doc world/games world/info
world/manpages
The following components of FreeBSD do not seem to be installed:
src/base src/bin src/cddl src/contrib src/crypto src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin
world/catpages world/proflibs
Does this look reasonable (y/n)? y
Fetching metadata signature for 8.0-BETA4 from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 8.0-BETA2 for merging... done.
Preparing to download files... done.
Fetching 7952 patches.....10....20....30....40....50....60....70....80....90....100...............7950. done.
Applying patches... done.
Fetching 137 files... done.
Attempting to automatically merge changes in files... done.
The following changes, which occurred between FreeBSD 8.0-BETA2 and
FreeBSD 8.0-BETA4 have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/group,v 1.35 2007/06/11 18:36:39 ceri Exp $
+# $FreeBSD: src/etc/group,v 1.35.10.1 2009/08/03 08:13:06 kensmith Exp $
#
wheel:*:0:root,steve
daemon:*:1:
kmem:*:2:
sys:*:3:
Does this look reasonable (y/n)? y
The following changes, which occurred between FreeBSD 8.0-BETA2 and
FreeBSD 8.0-BETA4 have been merged into /etc/master.passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/master.passwd,v 1.40 2005/06/06 20:19:56 brooks Exp $
+# $FreeBSD: src/etc/master.passwd,v 1.40.22.1 2009/08/03 08:13:06 kensmith Exp $
#
root:$1$Jso2G5aC$cyVVolqIiIk5qAtVvMPsI1:0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
Does this look reasonable (y/n)? y
The following changes, which occurred between FreeBSD 8.0-BETA2 and
FreeBSD 8.0-BETA4 have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/master.passwd,v 1.40 2005/06/06 20:19:56 brooks Exp $
+# $FreeBSD: src/etc/master.passwd,v 1.40.22.1 2009/08/03 08:13:06 kensmith Exp $
#
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
Does this look reasonable (y/n)? y
The following files will be removed as part of updating to 8.0-BETA4-p0:
/etc/pam.d/gdm
/lib/libalias.so.6
/lib/libavl.so.1
/lib/libbegemot.so.3
/lib/libbsdxml.so.3
/lib/libbsnmp.so.4
/lib/libcam.so.4
/lib/libcrypt.so.4
/lib/libcrypto.so.5
/lib/libctf.so.1
/lib/libdevstat.so.6
/lib/libdtrace.so.1
/lib/libedit.so.6
/lib/libgeom.so.4
/lib/libipsec.so.3
/lib/libipx.so.4
/lib/libkiconv.so.3
/lib/libkvm.so.4
/lib/libmd.so.4
/lib/libncurses.so.7
/lib/libncursesw.so.7
/lib/libnvpair.so.1
/lib/libpcap.so.6
/lib/libreadline.so.7
/lib/libsbuf.so.4
The following files will be updated as part of updating to 8.0-BETA4-p0:
/.cshrc
/.profile
/COPYRIGHT
/bin/[
/bin/cat
/bin/chflags
/bin/chio
/bin/chmod
/bin/cp
/bin/csh
/bin/date
/bin/dd
/bin/df
/bin/domainname
/bin/echo
/bin/ed
/bin/expr
/bin/getfacl
/bin/hostname
/bin/kenv
/bin/kill
/bin/link
/bin/ln
/bin/ls
/bin/mkdir
...
eight#
# freebsd-update install
# shutdown -r now
# freebsd-update install
# shutdown -r now
localhost wiki