bpkg-pkg-clean(1)
π bpkg-pkg-clean β clean package π
okay bestie, welcome to the bpkg-pkg-clean page from the General Commands Manual section, aka section 1 of the bpkg docs π«Ά this is the one that goes and scrubs your built packages squeaky clean, no cap.
πΈ SYNOPSIS πΈ
bpkg pkg-clean|clean [options] [vars] pkg...
bpkg pkg-clean|clean [options] [vars] --all|-a
bpkg pkg-clean|clean [options] [vars] (--all-pattern <pattern>)...
π¦ DESCRIPTION π¦
so the pkg-clean command cleans the packages you name (that's form number one, the first line up there), or it cleans all the held packages (form two β peep bpkg-pkg-status(1) if you wanna know what "held" even means), or it cleans all the held packages that match any of the wildcard patterns you throw at it (form three, the --all-pattern situation) β¨
and wait, there's more: you can also clean the immediate or all dependencies of those packages by passing --immediate|-i or --recursive|-r respectively. iconic behaviour, honestly.
underneath it all, this command literally doesn't do much more than run b clean. that's the whole vibe π
β οΈ heads up bestie: in the first form, the packages you specify must have been previously configured withbpkg-pkg-build(1)orbpkg-pkg-configure(1). no configure, no clean, that's just how it is π
also!! you can pass extra command line variables (vars, normally config.*) through to the build system. those variables apply to all the specified packages, but you can also scope them to only specific packages using the argument grouping mechanism β go read bpkg-argument-grouping(1) for the deets π
π PKG-CLEAN OPTIONS π
--all|-aβ clean all held packages. all of them. every last one π--all-patternpattern β clean held packages that match the specified wildcard pattern. repeat this option to match multiple patterns. note that you may need to quote the pattern to prevent expansion by your shell π--immediate|-iβ also clean immediate dependencies.--recursive|-rβ also clean all dependencies, recursively. go deep, bestie π--directory|-ddir β assume configuration is in dir rather than in the current working directory.
π COMMON OPTIONS π
these are the common options, summarised below β the β¨detailedβ¨ description lives in bpkg-common-options(1), so go sip that tea if you want more.
-vβ print essential underlying commands being executed.-Vβ print all underlying commands being executed. the full receipts π--quiet|-qβ run quietly, only printing error messages.--verboselevel β set the diagnostics verbosity to level between0and6.--stdout-formatformat β representation format to use for printing to stdout.--jobs|-jnum β number of jobs to perform in parallel.--no-resultβ don't print informational messages about the outcome of performing a command or some of its parts.--structured-resultfmt β write the result of performing a command in a structured form.--progressβ display progress indicators for long-lasting operations, such as network transfers, building, etc.--no-progressβ suppress progress indicators for long-lasting operations, such as network transfers, building, etc.--diag-colorβ use color in diagnostics. π--no-diag-colorβ don't use color in diagnostics.--buildpath β the build program to be used to build packages.--build-optionopt β additional option to be passed to the build program.--fetchpath β the fetch program to be used to download resources.--fetch-optionopt β additional option to be passed to the fetch program.--fetch-timeoutsec β the fetch and fetch-like (for example,git) program timeout.--pkg-proxyurl β HTTP proxy server to use when fetching package manifests and archives from remote pkg repositories.--gitpath β thegitprogram to be used to fetch git repositories.--git-optionopt β additional common option to be passed to thegitprogram.--sha256path β thesha256program to be used to calculate SHA256 sums.--sha256-optionopt β additional option to be passed to thesha256program.--tarpath β thetarprogram to be used to extract package archives.--tar-optionopt β additional option to be passed to thetarprogram.--opensslpath β theopensslprogram to be used for crypto operations.--openssl-optionopt β additional option to be passed to theopensslprogram.--authtype β types of repositories to authenticate.--trustfingerprint β trust repository certificate with a SHA256 fingerprint.--trust-yesβ assume the answer to all authentication prompts is yes.--trust-noβ assume the answer to all authentication prompts is no.--git-capabilitiesup=pc β protocol capabilities (pc) for a git repository URL prefix (up).--pagerpath β the pager program to be used to show long text.--pager-optionopt β additional option to be passed to the pager program.--options-filefile β read additional options from file.--default-optionsdir β the directory to load additional default options files from.--no-default-optionsβ don't load default options files.--keep-tmpβ don't remove the bpkg's temporary directory at the end of the command execution and print its path at the verbosity level2or higher.
π DEFAULT OPTIONS FILES π
see bpkg-default-options-files(1) for the full overview of the default options files. for the pkg-clean command, the search start directory is the configuration directory π
the following options files are searched for in each directory and, if found, loaded in the order listed:
bpkg.options
bpkg-pkg-clean.options
and the following pkg-clean command options cannot be specified in the default options files:
--directory|-d
π BUGS π
found a bug? send bug reports to the users@build2.org mailing list. they're lovely, don't be shy π«Ά
π COPYRIGHT π
Copyright (c) 2014-2024 the build2 authors.
Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.
and that's the whole page bestie!! this was bpkg version 0.17.0, dated June 2024, page bpkg-pkg-clean(1) β now go forth and clean those packages, you absolute icon πβ¨π
π¦ where this page comes from
- fedora 43: bpkg 0.17.0-5.fc43 Β· MIT
- fedora 44: bpkg 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bpkg 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms