The Script
freebsd-update.sh
Usage
What It Does
The script runs two separate update processes:freebsd-update updates the base operating system — the kernel, userland utilities, and system libraries shipped with FreeBSD. This is equivalent to applying OS-level security patches.
pkg upgrade updates all packages installed through the ports/package system (Nginx, Python, etc.). This is equivalent to apt upgrade or dnf upgrade on Linux.
Both are necessary to keep a FreeBSD system fully patched.