1 .\" $NetBSD: postinstall.8,v 1.18 2014/12/21 21:10:13 wiz Exp $
3 .\" Copyright (c) 2005-2008 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Thomas Klausner.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd check and fix installation after system upgrades
41 .Op Fl s Brq Ar srcdir | Ar tgzdir | Ar tgzfile
48 utility performs post-installation checks and/or fixes on a system's
50 It is especially useful after system upgrades, e.g. after updating
55 The items to check or fix are divided in two groups: enabled by
56 default and disabled by default.
57 The latter are items that are dangerous for some reason, for example
58 because they remove files which may be still in use.
61 are provided, the default checks or fixes are applied.
62 Those which are disabled by default must be provided explicitly.
65 .Bl -tag -width XsXsrcdirXXX -offset indent
68 Defaults to machine of the host operating system.
70 Destination directory to check.
75 Defaults to machine of the host operating system.
76 .It Fl s Brq Ar srcdir | Ar tgzdir | Ar tgzfile
77 The location of the reference files, or the
79 source files used to create the reference files.
80 This may be specified in one of three ways:
81 .Bl -tag -width XXsXtgzfileXX
83 The top level directory of the
89 A directory in which reference files have been
90 extracted from a binary distribution of
92 The files that are distributed in the
94 set file must be present.
95 The files that are distributed in the
97 set file are optional.
99 The location of a set file
106 from a binary distribution of
108 Each set file is a compressed archive containing reference files,
109 which will be extracted to the
114 options may be used to specify multiple set files.
117 set file must be specified.
120 set file is optional.
123 Location of the X11 source files.
124 This must be a directory that contains a
131 argument may be one of:
132 .Bl -tag -width usageXX -offset indent
134 Perform post-installation checks on items.
135 .It Cm diff Op Xr diff 1 Li options
138 but also show the differences between the files.
142 determines need to be applied.
143 Not all items can be automatically fixed by
145 and in some cases an error will be reported,
146 after which manual intervention will be required.
148 Conflicts between existing files in the target file system
149 and new files from the
151 distribution are resolved by replacing the existing file
152 with the new file; there is no attempt to merge the files.
155 for an alternative update method that is able to merge files.
157 Display a short help.
161 showing if they are enabled or disabled by default.
169 utility exits 0 on success, and \*[Gt]0 if an error occurs
170 or a problem was found.
176 utility first appeared in
187 the ability to specify multiple colon-separated files with a single
189 option was deprecated.
193 the ability to specify multiple colon-separated files with a single
198 options must be used instead.