Update Freebsd using freebsd-update:

Set in /etc/rc.conf:


reboot and then:

# freebsd-update upgrade -r 10.4-RELEASE
# freebsd-update install
# reboot
# freebsd-update install

Repeate then to upgrade to 11.1 freebsd-update upgrade -r 11.1-RELEASE

Only security patches:

# freebsd-update fetch
# freebsd-update install

To update the packages:

# pkg-static upgrade -f
# freebsd-update install

A forced upgrade of all installed packages will replace the packages with fresh versions from the repository even if the version number has not increased. This is required because of the ABI version change when upgrading between major versions of FreeBSD. The forced upgrade can be accomplished by performing: