removef(1M) removef(1M)
NAME
removef - remove a file from software database
SYNOPSIS
/usr/sbin/removef pkginst path1 [path2 ...]
/usr/sbin/removef -f pkginst
DESCRIPTION
removef informs the system that the user, or software, intends to
remove a pathname. Output from removef is the list of input pathnames
that may be safely removed (no other packages have a dependency on
them).
After all files have been processed, removef should be invoked with
the -f option to indicate that the removal phase is complete.
OPTIONS
-f Indicates that the removal phase is complete.
pkginst Defines the package instance with which the pathnames(s) is
(are) to be associated.
path The pathname(s) to be removed.
EXAMPLE
The following shows the use of removef in an optional pre-install
script:
echo "The following files are no longer part of this package
and are being removed."
removef $PKGINST /dev/xt[0-9][0-9][0-9] |
while read pathname
do
echo "$pathname"
rm -f $pathname
done
removef -f $PKGINST || exit 2
SEE ALSO
installf(1M), pkgadd(1M), pkgask(1M), pkgchk(1M), pkginfo(1M),
pkgmk(1M), pkgparam(1M), pkgproto(1M), pkgtrans(1M).
Page 1 Reliant UNIX 5.44 Printed 11/98