back to the beginning

FreeBSD 12.0 Updating

Last updated: 2019-02-24

Security updates

freebsd-update fetch
freebsd-update install
shutdown -r now

Staying more up to date

Get the freshest ports

You can receive newer or quarterly packages.


Updating packages

Handbook pkg upgrade

Updating kernel

Handbook updating source
Handbook building kernel
  1. Setup
  2. Prevent autocleaning between builds. Add to /etc/src.conf

    NO_CLEAN=true

    Set default kernel. Add to /etc/make.conf

    KERNCONF=MYKERNEL
  3. Get kernel sources
  4. pkg install ca_root_nss
    mkdir /usr/src
    svnlite checkout https://svn.FreeBSD.org/base/stable/12 /usr/src

    Future updates only need

    svnlite update /usr/src
  5. Create and/or edit configuration
  6. cd /usr/src/sys/amd64/conf
    cp GENERIC MYKERNEL
  7. Build kernel
  8. cd /usr/src
    make buildkernel
  9. Install kernel
  10. make installkernel

    Reboot


Updating ports

Get ports sources

mkdir /usr/ports
svnlite checkout https://svn.FreeBSD.org/ports/head /usr/ports

future updates only need

svnlite update /usr/ports

back to the beginning

Something need fixing? Contact me: