Upgrade to new release

This article takes upgrading system from 10.2-RELEASE to 10.3-RELEASE as an example, but you must notice this tutorial may not apply to other versions. So please read the related release notes.

(1) Check current version:

  1. # freebsd-version -ku
  2. 10.2-RELEASE
  3. 10.2-RELEASE

(2) Run “freebsd-update upgrade“ command to upgrade current system to a new version:

  1. # freebsd-update upgrade -r 10.3-RELEASE
  2. ......
  3. To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".

(3) The last log of “freebsd-update upgrade -r 10.3-RELEASE“ prompts executing “freebsd-update install“:

  1. # freebsd-update install
  2. src component not installed, skipped
  3. Installing updates...
  4. Kernel updates have been installed. Please reboot and run
  5. "/usr/sbin/freebsd-update install" again to finish installing updates.

(4) Reboot the system and execute “freebsd-update install“ again:

  1. # reboot
  2. # freebsd-update install
  3. src component not installed, skipped
  4. Installing updates... done.

(5) Now check the version:

  1. # freebsd-version -ku
  2. 10.3-RELEASE-p4
  3. 10.3-RELEASE-p5

The system has been upgraded to 10.3-RELEASE now.

Reference:
freebsd-update;
FreeBSD 10.3-RELEASE Installation Instructions.