Quickly Update Freebsd 15.x and Over and All Jails

Published: Jul 8, 2026

Assuming you have:

here’s a single command to upgrade them all in one shot. What does the command do:

  1. Upgrades the host.
  2. Finds and upgrades all jails.
  3. 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

♨️

[web] · [in] · [fb] · [ig] · [x] · [tt] · [yt]

Previous Post
Next Post