|
Lines 535-542
Link Here
|
| 535 |
to maintain jails instead. Use <option>-b</option> to specify |
535 |
to maintain jails instead. Use <option>-b</option> to specify |
| 536 |
the path of the jail to be updated.</para> |
536 |
the path of the jail to be updated.</para> |
| 537 |
|
537 |
|
|
|
538 |
<para>To update the jail to the latest patch release of the |
| 539 |
version of &os; it is already running, then on the |
| 540 |
host:</para> |
| 541 |
|
| 538 |
<screen>&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> fetch</userinput> |
542 |
<screen>&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> fetch</userinput> |
|
|
543 |
&prompt.root; <userinput>freebsd-update -b <replaceable> /here/is/the/jail</replaceable> install</userinput></screen> |
| 544 |
|
| 545 |
<para>To upgrade the jail to a new version (not just a security |
| 546 |
update), first upgrade the host system as described in <xref |
| 547 |
linkend="freebsdupdate-upgrade" />. Once the host has been |
| 548 |
upgraded and rebooted, the jail can then be upgraded. |
| 549 |
For example to upgrade from 12.0-RELEASE to 12.1-RELEASE, |
| 550 |
on the host run:</para> |
| 551 |
|
| 552 |
<screen>&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> --currently-running <replaceable>12.0-RELEASE</replaceable> -r <replaceable>12.1-RELEASE</replaceable> upgrade</userinput> |
| 553 |
&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> install</userinput> |
| 554 |
&prompt.root; <userinput>service jail restart <replaceable>myjail</replaceable></userinput> |
| 539 |
&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> install</userinput></screen> |
555 |
&prompt.root; <userinput>freebsd-update -b <replaceable>/here/is/the/jail</replaceable> install</userinput></screen> |
|
|
556 |
|
| 557 |
<para>Then, if it was a major version upgrade, reinstall all |
| 558 |
installed packages and restart the jail again. This is |
| 559 |
required because the ABI version changes when upgrading |
| 560 |
between major versions of &os;. From the host:</para> |
| 561 |
|
| 562 |
<screen>&prompt.root; <userinput>pkg -j <replaceable>myjail</replaceable> upgrade -f</userinput> |
| 563 |
&prompt.root; <userinput>service jail restart <replaceable>myjail</replaceable></userinput></screen> |
| 564 |
|
| 540 |
</sect2> |
565 |
</sect2> |
| 541 |
</sect1> |
566 |
</sect1> |
| 542 |
|
567 |
|