148ffe56aSColin Percival.\"- 2db6b0a61SColin Percival.\" Copyright 2006, 2007 Colin Percival 348ffe56aSColin Percival.\" All rights reserved 448ffe56aSColin Percival.\" 548ffe56aSColin Percival.\" Redistribution and use in source and binary forms, with or without 648ffe56aSColin Percival.\" modification, are permitted providing that the following conditions 748ffe56aSColin Percival.\" are met: 848ffe56aSColin Percival.\" 1. Redistributions of source code must retain the above copyright 948ffe56aSColin Percival.\" notice, this list of conditions and the following disclaimer. 1048ffe56aSColin Percival.\" 2. Redistributions in binary form must reproduce the above copyright 1148ffe56aSColin Percival.\" notice, this list of conditions and the following disclaimer in the 1248ffe56aSColin Percival.\" documentation and/or other materials provided with the distribution. 1348ffe56aSColin Percival.\" 1448ffe56aSColin Percival.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1548ffe56aSColin Percival.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1648ffe56aSColin Percival.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1748ffe56aSColin Percival.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 1848ffe56aSColin Percival.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1948ffe56aSColin Percival.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2048ffe56aSColin Percival.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2148ffe56aSColin Percival.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2248ffe56aSColin Percival.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 2348ffe56aSColin Percival.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2448ffe56aSColin Percival.\" POSSIBILITY OF SUCH DAMAGE. 2548ffe56aSColin Percival.\" 2648ffe56aSColin Percival.\" $FreeBSD$ 2748ffe56aSColin Percival.\" 28db6b0a61SColin Percival.Dd November 11, 2007 2948ffe56aSColin Percival.Dt FREEBSD-UPDATE 8 3048ffe56aSColin Percival.Os FreeBSD 3148ffe56aSColin Percival.Sh NAME 3248ffe56aSColin Percival.Nm freebsd-update 3348ffe56aSColin Percival.Nd fetch and install binary updates to FreeBSD 3448ffe56aSColin Percival.Sh SYNOPSIS 3548ffe56aSColin Percival.Nm 3648ffe56aSColin Percival.Op Fl b Ar basedir 3748ffe56aSColin Percival.Op Fl d Ar workdir 3848ffe56aSColin Percival.Op Fl f Ar conffile 3948ffe56aSColin Percival.Op Fl k Ar KEY 40db6b0a61SColin Percival.Op Fl r Ar newrelease 4148ffe56aSColin Percival.Op Fl s Ar server 4248ffe56aSColin Percival.Op Fl t Ar address 4348ffe56aSColin Percival.Cm command ... 4448ffe56aSColin Percival.Sh DESCRIPTION 4548ffe56aSColin PercivalThe 4648ffe56aSColin Percival.Nm 4748ffe56aSColin Percivaltool is used to fetch, install, and rollback binary 4848ffe56aSColin Percivalupdates to the FreeBSD base system. 49764dd6b4SColin PercivalNote that updates are only available if they are being built for the 50764dd6b4SColin PercivalFreeBSD release and architecture being used; in particular, the 51764dd6b4SColin Percival.Fx 52764dd6b4SColin PercivalSecurity Team only builds updates for releases shipped in binary form 53764dd6b4SColin Percivalby the 54764dd6b4SColin Percival.Fx 55764dd6b4SColin PercivalRelease Engineering Team, e.g., 56764dd6b4SColin Percival.Fx 57764dd6b4SColin Percival6.1-RELEASE and 58764dd6b4SColin Percival.Fx 59764dd6b4SColin Percival6.2-RC1, but not 60764dd6b4SColin Percival.Fx 61764dd6b4SColin Percival6.2-STABLE or 62764dd6b4SColin Percival.Fx 63764dd6b4SColin Percival7.0-CURRENT. 6448ffe56aSColin Percival.Sh OPTIONS 6548ffe56aSColin PercivalThe following options are supported 6648ffe56aSColin Percival.Bl -tag -width "-f conffile" 6748ffe56aSColin Percival.It Fl b Ar basedir 6848ffe56aSColin PercivalOperate on a system mounted at 6948ffe56aSColin Percival.Ar basedir . 7048ffe56aSColin Percival(default: 7148ffe56aSColin Percival.Pa / , 7248ffe56aSColin Percivalor as given in the configuration file.) 7348ffe56aSColin Percival.It Fl d Ar workdir 7448ffe56aSColin PercivalStore working files in 7548ffe56aSColin Percival.Ar workdir . 7648ffe56aSColin Percival(default: 7748ffe56aSColin Percival.Pa /var/db/freebsd-update/ , 7848ffe56aSColin Percivalor as given in the configuration file.) 7948ffe56aSColin Percival.It Fl f Ar conffile 8048ffe56aSColin PercivalRead configuration options from 8148ffe56aSColin Percival.Ar conffile . 8248ffe56aSColin Percival(default: 8348ffe56aSColin Percival.Pa /etc/freebsd-update.conf ) 8448ffe56aSColin Percival.It Fl k Ar KEY 8548ffe56aSColin PercivalTrust an RSA key with SHA256 of 8648ffe56aSColin Percival.Ar KEY . 8748ffe56aSColin Percival(default: read value from configuration file.) 88db6b0a61SColin Percival.It Fl r Ar newrelease 89db6b0a61SColin PercivalSpecify the new release to which 90db6b0a61SColin Percival.Nm 91db6b0a61SColin Percivalshould upgrade (upgrade command only). 9248ffe56aSColin Percival.It Fl s Ar server 9348ffe56aSColin PercivalFetch files from the specified server or server pool. 9448ffe56aSColin Percival(default: read value from configuration file.) 9548ffe56aSColin Percival.It Fl t Ar address 9648ffe56aSColin PercivalMail output of 9748ffe56aSColin Percival.Cm cron 9848ffe56aSColin Percivalcommand, if any, to 9948ffe56aSColin Percival.Ar address . 10048ffe56aSColin Percival(default: root, or as given in the configuration file.) 10148ffe56aSColin Percival.El 10248ffe56aSColin Percival.Sh COMMANDS 10348ffe56aSColin PercivalThe 10448ffe56aSColin Percival.Cm command 10548ffe56aSColin Percivalcan be any one of the following: 10648ffe56aSColin Percival.Pp 10748ffe56aSColin Percival.Bl -tag -width "-f conffile" 10848ffe56aSColin Percival.It Cm fetch 10948ffe56aSColin PercivalBased on the currently installed world and the configuration 11048ffe56aSColin Percivaloptions set, fetch all available binary updates. 11148ffe56aSColin Percival.It Cm cron 11248ffe56aSColin PercivalSleep a random amount of time between 1 and 3600 seconds, 11348ffe56aSColin Percivalthen download updates as if the 11448ffe56aSColin Percival.Cm fetch 11548ffe56aSColin Percivalcommand was used. 11648ffe56aSColin PercivalIf updates are downloaded, an email will be sent 11748ffe56aSColin Percival(to root or a different address if specified via the 11848ffe56aSColin Percival.Fl t 11948ffe56aSColin Percivaloption or in the configuration file). 12048ffe56aSColin PercivalAs the name suggests, this command is designed for running 12148ffe56aSColin Percivalfrom 12248ffe56aSColin Percival.Xr cron 8 ; 12348ffe56aSColin Percivalthe random delay serves to minimize the probability that 12448ffe56aSColin Percivala large number of machines will simultaneously attempt to 12548ffe56aSColin Percivalfetch updates. 126db6b0a61SColin Percival.It Cm upgrade 127db6b0a61SColin PercivalFetch files necessary for upgrading to a new release. 128db6b0a61SColin PercivalBefore using this command, make sure that you read the 129db6b0a61SColin Percivalannouncement and release notes for the new release in 130db6b0a61SColin Percivalcase there are any special steps needed for upgrading. 13148ffe56aSColin Percival.It Cm install 132db6b0a61SColin PercivalInstall the most recently fetched updates or upgrade. 13348ffe56aSColin Percival.It Cm rollback 13448ffe56aSColin PercivalUninstall the most recently installed updates. 13508e23beeSColin Percival.It Cm IDS 13608e23beeSColin PercivalCompare the system against a "known good" index of the 13708e23beeSColin Percivalinstalled release. 13848ffe56aSColin Percival.El 13948ffe56aSColin Percival.Sh TIPS 14048ffe56aSColin Percival.Bl -bullet 14148ffe56aSColin Percival.It 14248ffe56aSColin PercivalIf your clock is set to local time, adding the line 14348ffe56aSColin Percival.Pp 14448ffe56aSColin Percival.Dl 0 3 * * * root /usr/sbin/freebsd-update cron 14548ffe56aSColin Percival.Pp 14648ffe56aSColin Percivalto /etc/crontab will check for updates every night. 14787b66e43SColin PercivalIf your clock is set to UTC, please pick a random time 14848ffe56aSColin Percivalother than 3AM, to avoid overly imposing an uneven load 14948ffe56aSColin Percivalon the server(s) hosting the updates. 15008e23beeSColin Percival.It 15108e23beeSColin PercivalIn spite of its name, 15208e23beeSColin Percival.Cm 15308e23beeSColin PercivalIDS should not be relied upon as an "Intrusion Detection 15408e23beeSColin PercivalSystem", since it if the system has been tampered with 15508e23beeSColin Percivalit cannot be trusted to operate correctly. 15608e23beeSColin PercivalIf you intend to use this command for intrusion-detection 15708e23beeSColin Percivalpurposes, make sure you boot from a secure disk (e.g., a CD). 15848ffe56aSColin Percival.El 15948ffe56aSColin Percival.Sh FILES 16048ffe56aSColin Percival.Bl -tag -width "/etc/freebsd-update.conf" 16148ffe56aSColin Percival.It /etc/freebsd-update.conf 16248ffe56aSColin PercivalDefault location of the 16348ffe56aSColin Percival.Nm 16448ffe56aSColin Percivalconfiguration file. 16548ffe56aSColin Percival.It /var/db/freebsd-update/ 16648ffe56aSColin PercivalDefault location where 16748ffe56aSColin Percival.Nm 16848ffe56aSColin Percivalstores temporary files and downloaded updates. 16948ffe56aSColin Percival.El 17048ffe56aSColin Percival.Sh SEE ALSO 17148ffe56aSColin Percival.Xr freebsd-update.conf 5 17248ffe56aSColin Percival.Sh AUTHORS 17348ffe56aSColin Percival.An Colin Percival Aq cperciva@FreeBSD.org 174