This guide covers iocage jails and the 15.0 plugin update workflow. From 15.1, see the separate Bastille and Applications procedures; the iocage plugin store no longer updates plugins from its catalog.
Jails and plugins use a specific FreeBSD release plus its patch level. An update applies patches within the installed release; an upgrade moves a jail to another FreeBSD release.
Before either operation, back up important jail data and configuration. The jail must be able to reach the FreeBSD update and package servers.
Update a Jail Within Its Release
Section titled “Update a Jail Within Its Release”Go to Jails, expand the jail, and click Update. This applies the newest available patch level for the jail’s installed FreeBSD release; it does not change the release itself.
Review job output for errors. Jail update logs are also written to /var/log/iocage.log.
Upgrade a Jail to Another Release
Section titled “Upgrade a Jail to Another Release”Confirm that the target release is supported by the FreeCORE host and by the software inside the jail. Stop the jail, open the FreeCORE Shell, and run:
iocage upgrade <jail-name> -r <target-release>For a jail that is not a basejail, iocage runs freebsd-update. It asks you to confirm each configuration file it merges or removes (answer y) and shows the lists of removed, added and updated files in a pager (press q). Installing a new major release this way can run for a long time without output.
The first upgrade to a release can take longer because iocage must download it. After an upgrade to a new major release, such as 13.x to 15.x, reinstall the jail’s packages as described below. Then start the jail and test every service before removing an older, unused release from the iocage/releases dataset.
Reinstall Packages After a Major Release Upgrade
Section titled “Reinstall Packages After a Major Release Upgrade”An upgrade replaces the jail’s FreeBSD base system and leaves its packages alone. Every package, pkg included, is still built for the old release, so pkg itself can fail to start with an error such as Shared object "libutil.so.9" not found. FreeBSD no longer publishes packages for 13.x, so a 13.x jail gets package updates again only after this step.
On FreeBSD 15 the default package repository is named FreeBSD-ports. A jail set up on 13.x may have a /usr/local/etc/pkg/repos/FreeBSD.conf that sets FreeBSD: { url: ... } to follow the latest branch. On 15 that file no longer changes the default repository. It adds a second repository named FreeBSD without signature checking, and with a pkg+http or pkg+https address package installs stop with pkg+:// implies SRV mirror type. If the jail has that file, change its contents first. To keep the latest branch:
FreeBSD-ports: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }To use the default quarterly branch instead:
FreeBSD: { enabled: no }Start the jail, open its shell (Jails, expand the jail, Shell, or iocage console <jail-name> in the FreeCORE Shell), and run:
pkg-static install -f pkgpkg upgrade -fpkg-static is the statically linked copy of pkg, so it runs without the old release’s libraries. pkg upgrade -f then reinstalls every package with its build for the new release. To list packages that are still built for the old release, run this in a 15.x jail:
pkg query -a '%n %q' | grep -v FreeBSD:15These are packages that are no longer in the repository. Replace them, or install compat13x-amd64 (compat14x-amd64 for a jail that came from 14.x) to keep the old libraries available until you do.
Update a Plugin
Section titled “Update a Plugin”Go to Plugins, select an installed plugin, and click Update. Select Update jail as well when the plugin jail should also receive its FreeBSD updates.
Plugin updates can change both the packaged application and its jail configuration. Read the plugin’s post-install notes and verify the application after the job completes.
Update Packages Installed Manually
Section titled “Update Packages Installed Manually”For software installed manually inside a custom jail, start the jail, open Shell, and run:
pkg updatepkg upgradeThis updates packages from the repository configured inside that jail. It does not replace the plugin update action for a managed plugin.
Previous
MinIO CompatibilityNext
Virtual Machines