|required||Ports/packages that a port/package needs for it to be built and/or run. Port Makefiles refer to this type of ports/packages using the BUILD_DEPENDS and RUN_DEPENDS macros, respectively.|
|Ports/packages that need this port/package.|
The following command line arguments are supported. The options marked as '[*]' are transparently passed to pkg_delete(1).
pkgname_glob Specify one of these: a full pkgname, a pkgname without version, a shell glob pattern in which you can use wildcards '*', '?', and '[..]', an extended regular expression preceded by a colon ':', or a date range specification preceded by either '<' or '>'. See pkg_glob(1) for details and concrete examples.
Show help and exit.
Deinstall all the installed packages. Equivalent to specify * as pkgname_glob.
For each package, check if any of the files installed by the package has been overwritten by others. If any, list them and abort the deinstallation of the package. This option is disabled by the -f option.
Remove empty directories created by file cleanup. By default, only files/directories explicitly listed in a packages contents (either as normal files/directories or with the @dirrm directive) will be removed at deinstallation time. This option tells pkg_deinstall to also remove any directories that were emptied as a result of removing the package. [*]
If a deinstallation script exists for a given package, do not execute it. [*]
Force removal of the package, even if a dependency is recorded or the deinstall or require script fails. [*]
Request confirmation before attempting to delete each package, regardless whether or not the standard input device is a terminal.
Do not actually deinstall a package, just report the steps that would be taken if it were. [*]
Omit sanity checks for dependencies. By default, pkg_deinstall checks if all the packages to deinstall have consistent dependencies, though it takes extra time to calculate dependencies. If you are sure you have run "pkgdb -F" in advance, you can specify this option to omit the sanity checks.
Set prefix as the directory in which to delete files from any installed packages which do not explicitly set theirs. For most packages, the prefix will be set automatically to the installed location by pkg_add(1). [*]
.Fx shared library files. pkg_deinstall invokes file(1) to check if each file with the ".so.X", or ".so.X.Y" suffix is a
.Fx shared library, copies all the found shared libraries to $LOCALBASE/lib/compat/pkg, and runs ldconfig(8) to update the ldconfig cache.
This option is useful when you suspect that you still have some binaries that depend on the shared library being deleted.
Do not read the configuration file. ($PREFIX/etc/pkgtools.conf)
Deinstall all those packages depending on the given packages as well.
Deinstall all those packages required by the given packages as well.
Turn on verbose output. [*]
Exclude packages matching the specified glob pattern. Exclusion is performed after recursing dependency in response to -r and/or -R , which means, for example, the following command will deinstall all the packages depending on XFree86 but leave XFree86 as it is:
pkg_deinstall -rx XFree86 XFree86
PKG_DBDIR Alternative location for the installed package database. Default is "/var/db/pkg"
PKGTOOLS_CONF Configuration file for the pkgtools suite. Default is "$PREFIX/etc/pkgtools.conf".
/var/db/pkg Default location of the installed package database.
$LOCALBASE/lib/compat/pkg Location where shared library files are preserved.
$PREFIX/etc/pkgtools.conf Default location of the pkgtools configuration file.
pkg_add(1), pkg_delete(1), pkg_glob(1), pkg_info(1), pkg_sort(1), pkgdb(1), portinstall(1), portsclean(1), portupgrade(1), pkgtools.conf(5), ports(7)
.An Akinori MUSHA Aq knu@iDaemons.org