xref: /openbsd/usr.sbin/syspatch/syspatch.8 (revision 73471bf0)
1.\"	$OpenBSD: syspatch.8,v 1.22 2020/12/07 21:19:28 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 7 2020 $
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, creating a rollback tarball containing the files it is about
37to replace, then extracting and installing all files contained in the syspatch
38tarball.
39If any sets are missing, patches are skipped accordingly.
40Patches are cumulative and as such it is not possible to install only a subset
41of them.
42.Pp
43The options are as follows:
44.Bl -tag -width Ds
45.It Fl c
46List available patches; suitable for
47.Xr cron 8 .
48.It Fl l
49List installed patches.
50.It Fl R
51Revert all patches.
52.It Fl r
53Revert the most recently installed patch.
54.El
55.Sh FILES
56.Bl -tag -width "/etc/installurl" -compact
57.It Pa /etc/installurl
58.Ox
59mirror top-level URL for fetching patches.
60.It Pa /var/syspatch/*
61Directories containing the rollback tarball and original signed
62.Xr diff 1
63of installed patches.
64.El
65.Sh EXIT STATUS
66.Ex -std syspatch
67In particular, 2 indicates that applying patches was requested but no
68additional patch was installed.
69.Sh SEE ALSO
70.Xr signify 1 ,
71.Xr installurl 5 ,
72.Xr release 8
73.Sh HISTORY
74.Nm
75first appeared in
76.Ox 6.1 .
77.Sh AUTHORS
78.Nm
79was written by
80.An Antoine Jacoutot Aq Mt ajacoutot@openbsd.org .
81.Sh CAVEATS
82.Nm
83is designed to work solely on official
84.Ox
85releases.
86