DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

removef(ADM)


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.

Examples

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(C), pkgmk(C), pkgparam(C), pkgproto(C), pkgtrans(C)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003