Quickly Update Freebsd 15.x and Over and All Jails
Published: Jul 8, 2026
Assuming you have:
- pkgbase and 15.x FreeBSD server with a bunch of jails
- bastille as the jail manager
- and that the host and all jails are on pkgbase
here’s a single command to upgrade them all in one shot. What does the command do:
- Upgrades the host.
- Finds and upgrades all jails.
- Restarts all jails thereafter.
pkg update -f && pkg upgrade -y && ( set -e; for jail in $(bastille list jail); do echo "=== Updating $jail ==="; bastille update "$jail"; done ) && bastille pkg ALL update -f && bastille pkg ALL upgrade -y && bastille restart ALL
♨️