|REMOVEF(8)||Maintenance Commands and Procedures||REMOVEF(8)|
removef [ [-M] -R root_path] [-V fs_file] pkginst path...
removef [ [-M] -R root_path] [-V fs_file] -f pkginst
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).
The following options are supported:
removef inherits the value of the PKG_INSTALL_ROOT environment variable. (See ENVIRONMENT VARIABLES, below.) If PKG_INSTALL_ROOT is set, such as when the -R option is used with pkgadd(8) or pkgrm(8), there is no need to use the removef -R option.
The following operands are supported:
The following example uses the removef command in an optional pre-install script:
echo "The following files are no longer part of this package and are being removed." removef $PKGINST /myapp/file1 /myapp/file2 | while read pathname do echo "$pathname" rm -f $pathname done removef -f $PKGINST || exit 2
removef inherits the value of the following environment variable. This variable is set when pkgadd(8) or pkgrm(8) is invoked with the -R option.
pkginfo(1), pkgmk(1), pkgparam(1), pkgproto(1), pkgtrans(1), attributes(7), largefile(7), installf(8), pkgadd(8), pkgask(8), pkgchk(8), pkgrm(8)
Package commands are largefile(7)-aware. They handle files larger than 2 GB in the same way they handle smaller files. In their current implementations, pkgadd(8), pkgtrans(1) and other package commands can process a datastream of up to 4 GB.
|October 30, 2007||OmniOS|