Skip to content

poudriere pkgclean.8

Bryan Drewery edited this page Aug 25, 2024 · 6 revisions

This page is auto-generated from src/man/poudriere-pkgclean.8

POUDRIERE-PKGCLEAN(8) FreeBSD System Manager's Manual POUDRIERE-PKGCLEAN(8)

poudriere pkgcleancleanup old or unwanted packages

poudriere pkgclean subcommand [options]

poudriere pkgclean [options] origin [origin2 [...]]

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.

-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.
-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.
-u
Force rebuilding and signing the repo, even if no change was made.
-v
This will show more information during the build. Specify twice to enable debug output.
-y
Assume yes, do not confirm and just delete the files.
-z set
SET to use for the packages to inspect.

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)

Baptiste Daroussin ⟨bapt@FreeBSD.org⟩
Bryan Drewery ⟨bdrewery@FreeBSD.org⟩

June 6, 2022 FreeBSD 15.0-CURRENT
Clone this wiki locally