Jail update with freebsd-update

Ezjail is really a great tool for managing your FreeBSD jails. V3.0 introduced a nice feature to update your base jail using binary updates. This means you can update your jails invoking the freebsd-update utility. Assuming you allready installed and configured your jails with the ezjail-admin tool.

First update host with freebsd-update
# freebsd-update fetch
# freebsd-update install

Use option -u to update base jail with freebsd-update
# ezjail-admin update -u

You will see something like this:

[root@edsel.nu:~] ezjail-admin update -u
Looking up update.FreeBSD.org mirrors… 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update5.FreeBSD.org… done.
Fetching metadata index… done.
Inspecting system… done.
Preparing to download files… done.

The following files will be updated as part of updating to 8.1-RELEASE-p4:
/usr/bin/dig
/usr/bin/host
/usr/bin/nslookup
/usr/bin/nsupdate
/usr/sbin/dnssec-dsfromkey
/usr/sbin/dnssec-signzone
/usr/sbin/lwresd
/usr/sbin/named
/usr/sbin/named-checkconf
/usr/sbin/named-checkzone
/usr/sbin/named-compilezone
Installing updates… done.

Good idea to (while you’re on the road) also update jail ports tree.
# ezjail-admin update -P

Login on the jail console
# ezjail-admin list
# ezjail-admin console <hostname>

List outdated ports
# pkg_version -vIL=

Read about ports you want to upgrade
# less /usr/ports/UPDATING

Now use portmaster(8) to upgrade outdated ports
# portmaster -db <port>

Read more aboutĀ ezjail-admin(1).
However, the -u option is not documented in theĀ ezjail-admin(1) man page, not sure why.

Comments are closed.