xref: /openbsd-src/usr.sbin/syspatch/syspatch.8 (revision b40f9483777fcf92becc1ba3902c687c0f9c83e5)
1.\"	$OpenBSD: syspatch.8,v 1.17 2017/05/05 08:07:36 ajacoutot Exp $
2.\"
3.\" Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: May 5 2017 $
18.Dt SYSPATCH 8
19.Os
20.Sh NAME
21.Nm syspatch
22.Nd manage base system binary patches
23.Sh SYNOPSIS
24.Nm syspatch
25.Op Fl c | l | R | r
26.Sh DESCRIPTION
27.Nm
28is a utility to fetch, verify, install and revert
29.Ox
30binary patches.
31.Pp
32When run without any options,
33.Nm syspatch
34will apply
35.Em all
36missing patches by saving the original release kernel if needed, creating a
37rollback tarball containing the files it is about to replace, then extracting
38and installing all files contained in the syspatch tarball.
39.Pp
40The options are as follows:
41.Bl -tag -width Ds
42.It Fl c
43List available patches; suitable for
44.Xr cron 8 .
45.It Fl l
46List installed patches.
47.It Fl R
48Revert all patches.
49.It Fl r
50Revert the most recently installed patch.
51.El
52.Sh FILES
53.Bl -tag -width "/bsd.syspatch${OSrev}" -compact
54.It Pa /bsd.syspatch${OSrev}
55Backup of the original
56.Pa /bsd
57release kernel.
58.It Pa /etc/installurl
59.Ox
60mirror top-level URL for fetching patches.
61.It Pa /var/syspatch/*
62Directories containing the rollback tarball and original signed
63.Xr diff 1
64of installed patches.
65.El
66.Sh SEE ALSO
67.Xr signify 1 ,
68.Xr installurl 5 ,
69.Xr release 8
70.Sh HISTORY
71.Nm
72first appeared in
73.Ox 6.1 .
74.Sh AUTHORS
75.Nm
76was written by
77.An Antoine Jacoutot Aq Mt ajacoutot@openbsd.org .
78.Sh CAVEATS
79.Nm
80is designed to work solely on official
81.Ox
82releases.
83