POSTINSTALL(8) | System Manager's Manual | POSTINSTALL(8) |
postinstall
—
check and fix installation after system upgrades
postinstall |
[-a arch]
[-d destdir]
[-m machine]
[-s (srcdir |
tgzdir | tgzfile)]
[-x xsrcdir]
operation ... |
postinstall |
-? |
The postinstall
utility performs
post-installation checks and/or fixes on a system's configuration files. It
is especially useful after system upgrades, e.g. after updating from
NetBSD 1.6.2 to NetBSD 2.0.
The items to check or fix are divided in two groups: enabled by default and
disabled by default. The latter are items that are dangerous for some
reason, for example because they remove files which may be still in use. If
no items are provided, the default checks or fixes are
applied. Those which are disabled by default must be provided
explicitly.
Supported options:
-a
arch-d
destdir-m
machine-s
(srcdir | tgzdir |
tgzfile)-s
srcdir-s
tgzdir-s
tgzfile-s
options may be used to specify multiple set
files. The “etc.tgz” set file
must be specified. The
“xetc.tgz” set file is
optional.-x
xsrcdir-?
The operation argument may be one of:
check
item ...diff
[-
bcenpuw]
item ...check
, but also show the differences
between the files.fix
item ...check
determines need to be
applied. Not all items can be automatically fixed by
postinstall
, and in some cases an error will be
reported, after which manual intervention will be required.
Conflicts between existing files in the target file system and new files from the NetBSD distribution are resolved by replacing the existing file with the new file; there is no attempt to merge the files. See etcupdate(8) for an alternative update method that is able to merge files.
help
list
usage
The postinstall
utility exits 0 on
success, and >0 if an error occurs or a problem was found.
The postinstall
utility first appeared in
NetBSD 1.6.
In NetBSD 4.0, the
-s
tgzfile option was
added.
In NetBSD 5.0, the ability to specify
multiple colon-separated files with a single -s
option was deprecated.
In NetBSD 7.0, the ability to specify
multiple colon-separated files with a single -s
option was removed. Multiple -s
options must be used
instead.
January 9, 2022 | NetBSD 10.99 |