GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG-UNREGISTER(8) FreeBSD System Manager's Manual PKG-UNREGISTER(8)

pkg unregisterdeletes package records from the database

pkg unregister [-fnqRy] [-Cgix] pkg-name ...

pkg unregister [-nqy] -a


pkg unregister [--{force,dry-run,quiet,recursive,yes}] [--{case-sensitive,glob,case-insensitive,regex}] pkg-name ...

pkg unregister [--{dry-run,quiet,yes}] --all

pkg unregister is used for deleting installed packages from the database. pkg unregister creates a work-list of all the installed packages matching the package names on the command line. The list is presented to the user. If the user confirms that they do want to remove those packages from the db, or if the ASSUME_ALWAYS_YES configuration option is set, pkg unregister proceeds to remove from the db the listed packages.

If the set of packages to be unregistered would leave installed packages with unfulfilled dependencies, pkg unregister will add the packages with unfulfilled dependencies to the list of packages to be unregistered, unless forced to proceed without unregistering any other packages by the -f option.

pkg unregister avoids deleting itself unless named specifically on the command line. So, for instance, pkg unregister -a will unregister all packages from the db except for the pkg(8) package. To force all packages to be unregistered from the db without exception, use pkg unregister -fa.

The following options are supported by pkg unregister:

, --all
Deletes all installed packages from the db except for pkg(8) and cleans the database of information related to removed packages.
, --case-sensitive
Make the standard or regular expression (-x) matching against pkg-name case sensitive.
, --force
Forces packages to be removed from the db despite leaving unresolved dependencies. In combination with the -a or --all flag, causes pkg(8) to be removed as well as all other packages.
, --glob
Treat the package names as shell glob patterns.
, --case-insensitive
Make the standard or regular expression (-x) matching against pkg-name case insensitive. This is the default, unless modified by setting CASE_SENSITIVE_MATCH to true in pkg.conf.
, --dry-run
Dry run mode. The list of packages to delete is always printed, but no packages are actually deleted.
, --quiet
Force quiet output, except where -n is also used, when pkg unregister will show the list of packages to be deleted.
, --recursive
Delete all packages that require the listed packages as well.
, --regex
Treat the package names as regular expressions according to the "modern" or "extended" syntax of re_format(7).
, --yes
Assume yes when asked for confirmation before package deletion.

The following environment variables affect the execution of pkg unregister. See pkg.conf(5) for further description.

 
 
 
 
 
December 13, 2025 FreeBSD 15.1-RELEASE-p1

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.