xref: /openbsd-src/usr.sbin/syspatch/syspatch.8 (revision 611a204ab73f3f19cdd26b0b5b30ff9de77f9950)
1.\"	$OpenBSD: syspatch.8,v 1.11 2016/11/29 09:00:05 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: November 29 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 all missing patches by saving the original release kernel if needed,
35creating a rollback tarball containing the files it is about to replace,
36then extracting and installing all files contained in the syspatch tarball.
37.Pp
38The options are as follows:
39.Bl -tag -width Ds
40.It Fl c
41List available patches; suitable for
42.Xr cron 8 .
43.It Fl l
44List installed patches.
45.It Fl r
46Revert the most recently installed patch.
47.El
48.Sh FILES
49.Bl -tag -width "/var/syspatch/${OSREV}/*.tgz" -compact
50.It Pa /bsd.syspatch${OSrev}
51Backup of the original
52.Pa /bsd
53release kernel.
54.It Pa /var/syspatch/${OSREV}/*.sig
55Information on installed patches.
56.It Pa /var/syspatch/${OSREV}/*.tgz
57Rollback tarballs for reverting patches.
58.El
59.Sh SEE ALSO
60.Xr signify 1 ,
61.Xr release 8
62.Sh HISTORY
63.Nm
64first appeared in
65.Ox 6.1 .
66.Sh AUTHORS
67.Nm
68was written by
69.An Antoine Jacoutot Aq Mt ajacoutot@openbsd.org .
70.Sh CAVEATS
71.Nm
72only works on official releases and will always sync and apply all patches
73regardless of the installed sets.
74