FreeBSD manual

download PDF document: poudriere-pkgclean.8.pdf

POUDRIERE-PKGCLEAN(8) FreeBSD System Manager's Manual POUDRIERE-PKGCLEAN(8)
NAME poudriere pkgclean - cleanup old or unwanted packages
SYNOPSIS poudriere pkgclean subcommand [options] poudriere pkgclean [options] origin [origin2 [...]]
DESCRIPTION This command is used to delete all packages not specified to build. By default packages not listed will be deleted; Listed packages, and their dependencies, will be kept.
If -C is specified then packages listed on the command line will be deleted rather than kept. Their orphaned dependencies will not be deleted. A second run with a full list of wanted packages is needed to cleanup orphaned dependencies.
Either a subcommand or a list of port origins must be supplied.
SUBCOMMANDS -A Remove all packages.
-a Keep all known ports in the tree.
-f file Absolute path to a file which contains the list of ports to keep. Ports must be specified in the form category/port and shell-style comments are allowed. Multiple -f file arguments may be specified at once.
OPTIONS -C Delete the listed packages rather than keep them. This can be used to delete specific packages that need to be rebuilt while keeping them in the port list file. -r can be specified to delete reverse dependencies as well.
-J number This argument specifies how many number jobs will run in parallel for gathering package information.
-j name Jail to use for the packages to inspect.
-N Do not build package repository when done cleaning.
-n Dry run, do not actually delete anything.
-O overlay Specify an extra ports tree to use as an overlay. Multiple -O overlay arguments may be specified to stack them.
These overlays should be setup with poudriere-ports(8).
-p tree Specifies which ports tree to use. (Default: "default")
-r When -C is specified then all reverse dependencies will be deleted as well. This can be used to later force rebuild anything depending on the listed packages.
-R Also clean restricted packages.

-z set SET to use for the packages to inspect.
SEE ALSO poudriere(8), poudriere-bulk(8), poudriere-distclean(8), poudriere-image(8), poudriere-jail(8), poudriere-logclean(8), poudriere-ports(8), poudriere-queue(8), poudriere-status(8), poudriere-testport(8), poudriere-version(8)
AUTHORS Baptiste Daroussin <bapt@FreeBSD.org> Bryan Drewery <bdrewery@FreeBSD.org>
FreeBSD 14.2-RELEASE June 6, 2022 FreeBSD 14.2-RELEASE