xref: /openbsd-src/usr.sbin/syspatch/syspatch.8 (revision e6d78d6ec2c9b6e5f747f677206ccbe6267d98b0)
1.\"	$OpenBSD: syspatch.8,v 1.13 2016/12/08 09:47:37 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: December 8 2016 $
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
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.Pa 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 the most recently installed patch.
49.El
50.Sh FILES
51.Bl -tag -width "/bsd.syspatch${OSrev}" -compact
52.It Pa /bsd.syspatch${OSrev}
53Backup of the original
54.Pa /bsd
55release kernel.
56.It Pa /var/syspatch/*
57Directories containing the rollback tarball and original signed
58.Xr diff 1
59of installed patches.
60.El
61.Sh SEE ALSO
62.Xr signify 1 ,
63.Xr release 8
64.Sh HISTORY
65.Nm
66first appeared in
67.Ox 6.1 .
68.Sh AUTHORS
69.Nm
70was written by
71.An Antoine Jacoutot Aq Mt ajacoutot@openbsd.org .
72.Sh CAVEATS
73.Nm
74is designed to work solely on official
75.Ox
76releases.
77