Amiga Unix — 68040 · 68060

Manual pages › System administration commands (1M)

removef(1M)

remove a file from software database

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

apkg has its own copy, /usr/apkg/bin/removef: see removef-apkgeng(1M).

NAME

removef - remove a file from software database

SYNOPSIS

removef pkginst path1 [path2 ...]  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.

EXAMPLE

The following shows the use of removef in an optional preinstall 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(1), pkginfo(1),
pkgmk(1), pkgproto(1), pkgtrans(1), pkgparam(3X).