Index: head/en_US.ISO8859-1/books/handbook/jails/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/handbook/jails/chapter.xml +++ head/en_US.ISO8859-1/books/handbook/jails/chapter.xml @@ -535,8 +535,33 @@ to maintain jails instead. Use to specify the path of the jail to be updated. + To update the jail to the latest patch release of the + version of &os; it is already running, then execute the + following commands on the host: + &prompt.root; freebsd-update -b /here/is/the/jail fetch &prompt.root; freebsd-update -b /here/is/the/jail install + + To upgrade the jail to a new major or minor version, + first upgrade the host system as described in + . Once the host has been + upgraded and rebooted, the jail can then be upgraded. + For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, + on the host run: + + &prompt.root; freebsd-update -b /here/is/the/jail --currently-running 12.0-RELEASE -r 12.1-RELEASE upgrade +&prompt.root; freebsd-update -b /here/is/the/jail install +&prompt.root; service jail restart myjail +&prompt.root; freebsd-update -b /here/is/the/jail install + + Then, if it was a major version upgrade, reinstall all + installed packages and restart the jail again. This is + required because the ABI version changes when upgrading + between major versions of &os;. From the host: + + &prompt.root; pkg -j myjail upgrade -f +&prompt.root; service jail restart myjail +