removef(ADM) 19 June 1992 removef(ADM) Name removef - remove a file from software database Syntax removef pkginst path1 [ path2 ... ] removef -f pkginst Description removef checks whether a pathname can be removed safely from a particular package. Output from removef is the list of input pathnames that may be removed safely (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. 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(ADM), pkgadd(ADM), pkgask(ADM), pkgchk(ADM), pkginfo(ADM), pkgmk(ADM), pkgparam(ADM), pkgproto(ADM), pkgtrans(ADM)