bpkg-pkg-drop(1)
π bpkg-pkg-drop β drop package π
okay bestie, welcome to bpkg-pkg-drop, from the General Commands Manual section of the bpkg universe β¨ this is the girl that drops packages. like, removes them from your configuration. and she does it with main character energy π
πΈ SYNOPSIS πΈ
bpkg pkg-drop|drop [options] <pkg>...
bpkg pkg-drop|drop [options] --all|-a
bpkg pkg-drop|drop [options] (--all-pattern <pattern>)...
three forms, three vibes, all valid π
π¦ DESCRIPTION π¦
so here's the tea, bestie β
The pkg-drop command drops from the configuration the specified packages β that's the first form up there. It can also drop all the held packages (second form, and yes, peep bpkg-pkg-status(1) for the held-package lore), or drop all the held packages that match any of the specified wildcard patterns (third form). slay.
now, real talk: if the packages you're dropping still have dependent packages, those are gonna have to be dropped too, and you'll get a prompt asking you to confirm. not me being dramatic, that's just how it is π
and if the packages being dropped have dependency packages that would otherwise no longer be used? those get dropped as well β unless you pass the --keep-unused|-K option. so like, -K is the "no, leave my lil auto-built friends alone" flag π«Ά
The pkg-drop command also supports several options (all described below, don't worry) that let you control the amount of work that will be done. you're in charge here, periodt β¨
π PKG-DROP OPTIONS π
--all|-aβ Drop all held packages. all of them. every last one π--all-patternpattern β Drop held packages that match the specified wildcard pattern. Repeat this option to match multiple patterns (yes, it stacks, we love that for us). Note that you may need to quote the pattern to prevent expansion by your shell β your shell is nosy like that π--yes|-yβ Assume the answer to all prompts is yes. but heads up bestie: this option does not apply to the dropping of dependents; use--drop-dependentfor that. iykyk.--no|-nβ Assume the answer to all prompts is no. Only makes sense together with--print-only|-p. like, it literally only makes sense there.--keep-unused|-Kβ Don't drop dependency packages that were automatically built but will no longer be used. protecting the auto-built girlies π₯Ή--drop-dependent|-Dβ Don't warn about or ask for confirmation if dropping dependent packages. no drama, just vibes.--keep-dependentβ Issue an error if attempting to drop dependent packages. hard no, very firm boundaries π--dependent-exitcode β Silently exit with the specified error code if attempting to drop dependent packages. quiet, dramatic, iconic.--disfigure-onlyβ Disfigure all the packages but don't purge. disfigure but don't purge, that's the whole thing πΈ--print-only|-pβ Print to stdout what would be done without actually doing anything. manifesting the drop without the drop β¨--planheader β Print the plan (even if--yesis specified) and start it with the header line (unless it is empty).--directory|-ddir β Assume configuration is in dir rather than in the current working directory. tell her where to look π«Ά
π COMMON OPTIONS π
The common options are summarized below, with a more detailed description available in bpkg-common-options(1). go read that if you want the full dissertation, but here's the quick rundown:
-vβ Print essential underlying commands being executed.-Vβ Print all underlying commands being executed. all of them. every single one.--quiet|-qβ Run quietly, only printing error messages. shhh π€«--verboselevel β Set the diagnostics verbosity to level between 0 and 6. (0 through 6, that's the range, don't get creative.)--stdout-formatformat β Representation format to use for printing to stdout.--jobs|-jnum β Number of jobs to perform in parallel. multitasking queen π--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 β The git program to be used to fetch git repositories.--git-optionopt β Additional common option to be passed to the git program.--sha256path β The sha256 program to be used to calculate SHA256 sums.--sha256-optionopt β Additional option to be passed to the sha256 program.--tarpath β The tar program to be used to extract package archives.--tar-optionopt β Additional option to be passed to the tar program.--opensslpath β The openssl program to be used for crypto operations.--openssl-optionopt β Additional option to be passed to the openssl program.--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 level 2 or higher.
π§ DEFAULT OPTIONS FILES π§
See bpkg-default-options-files(1) for an overview of the default options files. For the pkg-drop 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-drop.options
The following pkg-drop command options cannot be specified in the default options files:
--directory|-d
so yeah, --directory|-d is the one that has to be said out loud, in person, no sneaking it into a defaults file π
π BUGS π
Send bug reports to the users@build2.org mailing list. (they're nice, promise π«Ά)
π 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.
okay that's the whole page, bestie β you ate that π
π this was bpkg-pkg-drop(1) from bpkg 0.17.0, dated June 2024 β¨ go forth and drop responsibly, mwah ππ¦
π¦ 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