2006-08-31 09:51:34 +00:00
|
|
|
.\"-
|
2007-11-12 04:47:57 +00:00
|
|
|
.\" Copyright 2006, 2007 Colin Percival
|
2006-08-31 09:51:34 +00:00
|
|
|
.\" All rights reserved
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted providing that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2017-06-14 18:34:22 +00:00
|
|
|
.Dd June 14, 2017
|
2006-08-31 09:51:34 +00:00
|
|
|
.Dt FREEBSD-UPDATE 8
|
2019-01-18 18:22:47 +00:00
|
|
|
.Os
|
2006-08-31 09:51:34 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm freebsd-update
|
|
|
|
.Nd fetch and install binary updates to FreeBSD
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl b Ar basedir
|
|
|
|
.Op Fl d Ar workdir
|
|
|
|
.Op Fl f Ar conffile
|
2015-03-03 23:20:18 +00:00
|
|
|
.Op Fl F
|
2006-08-31 09:51:34 +00:00
|
|
|
.Op Fl k Ar KEY
|
2007-11-12 04:47:57 +00:00
|
|
|
.Op Fl r Ar newrelease
|
2006-08-31 09:51:34 +00:00
|
|
|
.Op Fl s Ar server
|
|
|
|
.Op Fl t Ar address
|
2015-03-03 23:20:18 +00:00
|
|
|
.Op Fl -not-running-from-cron
|
2006-08-31 09:51:34 +00:00
|
|
|
.Cm command ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
tool is used to fetch, install, and rollback binary
|
2019-01-18 18:22:47 +00:00
|
|
|
updates to the
|
|
|
|
.Fx
|
|
|
|
base system.
|
2006-12-26 05:49:06 +00:00
|
|
|
Note that updates are only available if they are being built for the
|
2019-01-18 18:22:47 +00:00
|
|
|
.Fx
|
|
|
|
release and architecture being used; in particular, the
|
2006-12-26 05:49:06 +00:00
|
|
|
.Fx
|
2012-03-29 05:02:12 +00:00
|
|
|
Security Team only builds updates for releases shipped in binary form
|
2006-12-26 05:49:06 +00:00
|
|
|
by the
|
|
|
|
.Fx
|
|
|
|
Release Engineering Team, e.g.,
|
|
|
|
.Fx
|
2017-06-14 18:34:22 +00:00
|
|
|
10.3-RELEASE and
|
2006-12-26 05:49:06 +00:00
|
|
|
.Fx
|
2017-06-14 18:34:22 +00:00
|
|
|
11.0-RELEASE, but not
|
2006-12-26 05:49:06 +00:00
|
|
|
.Fx
|
2017-06-14 18:34:22 +00:00
|
|
|
10.3-STABLE or
|
2006-12-26 05:49:06 +00:00
|
|
|
.Fx
|
2017-06-14 18:34:22 +00:00
|
|
|
12-CURRENT.
|
2006-08-31 09:51:34 +00:00
|
|
|
.Sh OPTIONS
|
2012-05-24 02:24:03 +00:00
|
|
|
The following options are supported:
|
2015-03-03 23:20:18 +00:00
|
|
|
.Bl -tag -width "-r newrelease"
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Fl b Ar basedir
|
|
|
|
Operate on a system mounted at
|
|
|
|
.Ar basedir .
|
|
|
|
(default:
|
|
|
|
.Pa / ,
|
|
|
|
or as given in the configuration file.)
|
|
|
|
.It Fl d Ar workdir
|
|
|
|
Store working files in
|
|
|
|
.Ar workdir .
|
|
|
|
(default:
|
|
|
|
.Pa /var/db/freebsd-update/ ,
|
|
|
|
or as given in the configuration file.)
|
|
|
|
.It Fl f Ar conffile
|
|
|
|
Read configuration options from
|
|
|
|
.Ar conffile .
|
|
|
|
(default:
|
|
|
|
.Pa /etc/freebsd-update.conf )
|
2015-03-03 23:20:18 +00:00
|
|
|
.It Fl F
|
|
|
|
Force
|
|
|
|
.Nm Cm fetch
|
|
|
|
to proceed where it normally would not, such as an unfinished upgrade
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Fl k Ar KEY
|
|
|
|
Trust an RSA key with SHA256 of
|
|
|
|
.Ar KEY .
|
|
|
|
(default: read value from configuration file.)
|
2007-11-12 04:47:57 +00:00
|
|
|
.It Fl r Ar newrelease
|
|
|
|
Specify the new release to which
|
|
|
|
.Nm
|
|
|
|
should upgrade (upgrade command only).
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Fl s Ar server
|
|
|
|
Fetch files from the specified server or server pool.
|
|
|
|
(default: read value from configuration file.)
|
|
|
|
.It Fl t Ar address
|
|
|
|
Mail output of
|
|
|
|
.Cm cron
|
|
|
|
command, if any, to
|
|
|
|
.Ar address .
|
|
|
|
(default: root, or as given in the configuration file.)
|
2015-03-03 23:20:18 +00:00
|
|
|
.It Fl -not-running-from-cron
|
|
|
|
Force
|
|
|
|
.Nm Cm fetch
|
|
|
|
to proceed when there is no controlling tty.
|
|
|
|
This is for use by automated scripts and orchestration tools.
|
|
|
|
Please do not run
|
|
|
|
.Nm Cm fetch
|
|
|
|
from crontab or similar using this flag, see:
|
|
|
|
.Nm Cm cron
|
2015-10-09 12:34:33 +00:00
|
|
|
.It Fl -currently-running Ar release
|
2017-06-14 18:34:22 +00:00
|
|
|
Do not detect the currently-running release; instead, assume that the
|
2015-10-09 12:34:33 +00:00
|
|
|
system is running the specified
|
|
|
|
.Ar release .
|
|
|
|
This is most likely to be useful when upgrading jails.
|
2006-08-31 09:51:34 +00:00
|
|
|
.El
|
|
|
|
.Sh COMMANDS
|
|
|
|
The
|
|
|
|
.Cm command
|
|
|
|
can be any one of the following:
|
2015-03-03 23:20:18 +00:00
|
|
|
.Bl -tag -width "rollback"
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Cm fetch
|
|
|
|
Based on the currently installed world and the configuration
|
|
|
|
options set, fetch all available binary updates.
|
|
|
|
.It Cm cron
|
|
|
|
Sleep a random amount of time between 1 and 3600 seconds,
|
|
|
|
then download updates as if the
|
|
|
|
.Cm fetch
|
|
|
|
command was used.
|
|
|
|
If updates are downloaded, an email will be sent
|
|
|
|
(to root or a different address if specified via the
|
|
|
|
.Fl t
|
|
|
|
option or in the configuration file).
|
|
|
|
As the name suggests, this command is designed for running
|
|
|
|
from
|
|
|
|
.Xr cron 8 ;
|
|
|
|
the random delay serves to minimize the probability that
|
|
|
|
a large number of machines will simultaneously attempt to
|
|
|
|
fetch updates.
|
2007-11-12 04:47:57 +00:00
|
|
|
.It Cm 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.
|
2010-09-10 19:23:59 +00:00
|
|
|
Note that this command may require up to 500 MB of space in
|
|
|
|
.Ar workdir
|
|
|
|
depending on which components of the
|
|
|
|
.Fx
|
|
|
|
base system are installed.
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Cm install
|
2007-11-12 04:47:57 +00:00
|
|
|
Install the most recently fetched updates or upgrade.
|
2006-08-31 09:51:34 +00:00
|
|
|
.It Cm rollback
|
|
|
|
Uninstall the most recently installed updates.
|
2008-08-02 00:09:41 +00:00
|
|
|
.It Cm IDS
|
|
|
|
Compare the system against a "known good" index of the
|
|
|
|
installed release.
|
2006-08-31 09:51:34 +00:00
|
|
|
.El
|
|
|
|
.Sh TIPS
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
If your clock is set to local time, adding the line
|
|
|
|
.Pp
|
|
|
|
.Dl 0 3 * * * root /usr/sbin/freebsd-update cron
|
|
|
|
.Pp
|
|
|
|
to /etc/crontab will check for updates every night.
|
2006-12-31 05:18:35 +00:00
|
|
|
If your clock is set to UTC, please pick a random time
|
2006-08-31 09:51:34 +00:00
|
|
|
other than 3AM, to avoid overly imposing an uneven load
|
|
|
|
on the server(s) hosting the updates.
|
2008-08-02 00:09:41 +00:00
|
|
|
.It
|
|
|
|
In spite of its name,
|
2010-03-12 10:01:06 +00:00
|
|
|
.Nm
|
2008-08-02 00:09:41 +00:00
|
|
|
IDS should not be relied upon as an "Intrusion Detection
|
2009-05-06 20:07:28 +00:00
|
|
|
System", since if the system has been tampered with
|
2008-08-02 00:09:41 +00:00
|
|
|
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).
|
2006-08-31 09:51:34 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width "/etc/freebsd-update.conf"
|
2013-05-12 22:22:12 +00:00
|
|
|
.It Pa /etc/freebsd-update.conf
|
2006-08-31 09:51:34 +00:00
|
|
|
Default location of the
|
|
|
|
.Nm
|
|
|
|
configuration file.
|
2013-05-12 22:22:12 +00:00
|
|
|
.It Pa /var/db/freebsd-update/
|
2006-08-31 09:51:34 +00:00
|
|
|
Default location where
|
|
|
|
.Nm
|
|
|
|
stores temporary files and downloaded updates.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr freebsd-update.conf 5
|
|
|
|
.Sh AUTHORS
|
2014-06-20 09:57:27 +00:00
|
|
|
.An Colin Percival Aq Mt cperciva@FreeBSD.org
|