FREEBSD-UPDATE(8)
π FREEBSD-UPDATE(8) π
okay so bestie, this is the FREEBSD-UPDATE(8) page from the FreeBSD System Managerβs Manual β and itβs literally the manual for fetching, installing, and rolling back binary updates. iykyk π
π NAME π
freebsd-update β fetch and install binary updates to FreeBSD β¨
π¦ SYNOPSIS π¦
freebsd-update [-F] [-b basedir] [--currently-running release]
[-d workdir] [-f conffile] [-j jail] [-k KEY]
[--not-running-from-cron] [-r newrelease] [-s server]
[-t address] [-v level] command ...
β¨ DESCRIPTION β¨
The freebsd-update tool is the main-character utility for fetching, installing, and rolling back binary updates to the FreeBSD base system. periodt π«Ά
πΈ BINARY UPDATES AVAILABILITY πΈ
ngl, binary updates are not available for every single FreeBSD version and architecture. thatβs just the vibe check.
In general, binary updates are available for ALPHA, BETA, RC, and RELEASE versions of FreeBSD, e.g.:
FreeBSD 13.1-ALPHA3
FreeBSD 13.1-BETA2
FreeBSD 13.1-RC1
FreeBSD 13.1-RELEASE
They are not available for branches such as PRERELEASE, STABLE, and CURRENT, e.g.:
FreeBSD 13.0-PRERELEASE
FreeBSD 13.1-STABLE
FreeBSD 14.0-CURRENT
In particular, the FreeBSD Security Team only builds updates for releases shipped in binary form by the FreeBSD Release Engineering Team. so thatβs the lore π₯
π OPTIONS π
The following options are supported:
-b basedirβ Operate on a system mounted at basedir. (default:/, or as given in the configuration file.)-d workdirβ Store working files in workdir. (default:/var/db/freebsd-update/, or as given in the configuration file.)-f conffileβ Read configuration options from conffile. (default:/etc/freebsd-update.conf)-Fβ Forcefreebsd-update fetchto proceed in the case of an unfinished upgrade.-j jailβ Operate on the given jail specified by jid or name. (The version of the installed userland is detected and the--currently-runningoption is no more required.)-k KEYβ Trust an RSA key with SHA256 of KEY. (default: read value from configuration file.)-r newreleaseβ Specify the new release (e.g.,11.2-RELEASE) to whichfreebsd-updateshould upgrade (upgradecommand only).-s serverβ Fetch files from the specified server or server pool. (default: read value from configuration file.)-t addressβ Mail output of cron command, if any, to address. (default:root, or as given in the configuration file.)-v levelβ Set output verbosity. level must be one ofstats(show progress statistics while fetching files; the default),nostats(suppress progress statistics), ordebug(show all output from internal utilities).--not-running-from-cronβ Forcefreebsd-update fetchto proceed when there is no controllingtty(4). This is for use by automated scripts and orchestration tools. Please do not runfreebsd-update fetchfromcrontab(5)or similar using this flag, see:freebsd-update cron--currently-running releaseβ Do not detect the currently-running release; instead, assume that the system is running the specified release. This is most likely to be useful when upgrading jails.
π COMMANDS π
The command can be any one of the following:
fetchβ Based on the currently installed world and the configuration options set, fetch all available binary updates.cronβ Sleep a random amount of time between 1 and 3600 seconds, then download updates as if thefetchcommand was used. If updates are downloaded, an email will be sent (torootor a different address if specified via the-toption or in the configuration file). As the name suggests, this command is designed for running fromcron(8); the random delay serves to minimize the probability that a large number of machines will simultaneously attempt to fetch updates.upgradeβ Fetch files necessary for upgrading to a new release. Before using this command, make sure that you read the announcement and release notes for the new release in case there are any special steps needed for upgrading. Note that this command may require up to 500 MB of space in workdir depending on which components of the FreeBSD base system are installed.updatesreadyβ Check if there are fetched updates ready to install. Returns exit code2if there are no updates to install.installβ Install the most recently fetched updates or upgrade. Returns exit code2if there are no updates to install and thefetchcommand wasnβt passed as an earlier argument in the same invocation.rollbackβ Uninstall the most recently installed updates.IDSβ Compare the system against a βknown goodβ index of the installed release.showconfigβ Show configuration options after parsing conffile and command line options.
π TIPS π
- If your clock is set to local time, adding the line
0 3 * * * root /usr/sbin/freebsd-update cron
to /etc/crontab will check for updates every night. If your clock is set to UTC, please pick a random time other than 3AM, to avoid overly imposing an uneven load on the server(s) hosting the updates.
- In spite of its name,
freebsd-update IDSshould not be relied upon as an βIntrusion Detection Systemβ, since if the system has been tampered with it cannot be trusted to operate correctly. If you intend to use this command for intrusion-detection purposes, make sure you boot from a secure disk (e.g., a CD). π«Ά
π ENVIRONMENT π
PAGERβ The pager program used to present various reports during the execution. (Default:/usr/bin/less.)
PAGER can be set to cat when a non-interactive pager is desired.
π§ FILES π§
/etc/freebsd-update.confβ Default location of thefreebsd-updateconfiguration file./var/db/freebsd-update/β Default location wherefreebsd-updatestores temporary files, downloaded updates, and files required for rollback. All files under/var/db/freebsd-update/may be deleted if an upgrade is not in progress and rollback will not be required.
β SEE ALSO β
freebsd-version(1), uname(1), freebsd-update.conf(5), nextboot(8)
π AUTHORS π
Colin Percival <cperciva@FreeBSD.org> π
π BUGS π
In patch level situations β for example, 13.2-RELEASE-p1 up to 13.2-RELEASE-p2: if any previous modification to a file in /etc/ will conflict with an available update, then freebsd-update will make no attempt to merge. Instead: freebsd-update will print a list of affected locally-modified files. π
source/version: Debian Β· date: March 9, 2026 Β· manual: FREEBSD-UPDATE(8) β okay bestie thatβs the whole page, go forth and update responsibly πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright 2006, 2007 Colin Percival
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms