1 .\" $NetBSD: postinstall.8,v 1.16 2012/08/15 16:21:41 apb 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
47 utility performs post-installation checks and/or fixes on a system's
49 It is especially useful after system upgrades, e.g. after updating
54 The items to check or fix are divided in two groups: enabled by
55 default and disabled by default.
56 The latter are items that are dangerous for some reason, for example
57 because they remove files which may be still in use.
60 are provided, the default checks or fixes are applied.
61 Those which are disabled by default must be provided explicitly.
64 .Bl -tag -width XsXsrcdirXXX -offset indent
67 Defaults to machine of the host operating system.
69 Destination directory to check.
74 Defaults to machine of the host operating system.
75 .It Fl s Brq Ar srcdir | Ar tgzdir | Ar tgzfile
76 The location of the reference files, or the
78 source files used to create the reference files.
79 This may be specified in one of three ways:
80 .Bl -tag -width XXsXtgzfileXX
82 The top level directory of the
88 A directory in which reference files have been
89 extracted from a binary distribution of
91 The files that are distributed in the
93 set file must be present.
94 The files that are distributed in the
96 set file are optional.
98 The location of a set file
105 from a binary distribution of
107 Each set file is a compressed archive containing reference files,
108 which will be extracted to the
113 options may be used to specify multiple set files.
116 set file must be specified.
119 set file is optional.
125 argument may be one of:
126 .Bl -tag -width usageXX -offset indent
128 Perform post-installation checks on items.
129 .It Cm diff Op Xr diff 1 Li options
132 but also show the differences between the files.
136 determines need to be applied.
137 Not all items can be automatically fixed by
139 and in some cases an error will be reported,
140 after which manual intervention will be required.
142 Conflicts between existing files in the target file system
143 and new files from the
145 distribution are resolved by replacing the existing file
146 with the new file; there is no attempt to merge the files.
149 for an alternative update method that is able to merge files.
151 Display a short help.
155 showing if they are enabled or disabled by default.
163 utility exits 0 on success, and \*[Gt]0 if an error occurs
164 or a problem was found.
170 utility first appeared in
181 the ability to specify multiple colon-separated files with a single
183 option was deprecated.
187 the ability to specify multiple colon-separated files with a single
192 options must be used instead.