PKG-ANNOTATE(8)
๐ธ NAME ๐ธ
pkg annotate โ add, modify or delete arbitrary annotations from packages. (It also shows them, bestie ๐
)
This is PKG-ANNOTATE(8), aka pkg annotate from the System Manager's Manual โ yes, the section 8 one ๐
โจ SYNOPSIS โจ
pkg annotate [-qy] -A|M [-Cgix] pkg-name tag [value]
pkg annotate [-qy] -S|D [-Cgix] pkg-name tag
pkg annotate [-qy] -a -A|M tag [value]
pkg annotate [-qy] -a -S|D tag
pkg annotate [--{quiet,yes}] --{add|modify}
[--{case-sensitive,case-insensitive,glob,regex}] pkg-name tag
[value]
pkg annotate [--{quiet,yes}] --{show|delete}
[--{case-sensitive,case-insensitive,glob,regex}] pkg-name tag
pkg annotate [--{quiet,yes}] --all --{add|modify} tag [value]
pkg annotate [--{quiet,yes}] --all --{show|delete} tag
Short flags, long flags โ pick your vibe, both are iconic ๐
๐ฆ DESCRIPTION ๐ฆ
pkg annotate is used to add, modify, delete or show package annotations. These are freeform tag-value pairs which may contain any arbitrary text. Tags must be unique per package, but there is no restriction on what text values may be attached to them. So yes: tag is the main character, value is the supportive bestie with zero limits ๐ซถ
The tag is always specified on the command line, but when adding or modifying an annotation, the value may be supplied either on the command line or as a text stream on stdin. Literally flexible like that โจ
๐ OPTIONS ๐
The following options are supported by pkg annotate:
-a,--allโ Annotate all installed packages. Every single one, no skipping ๐-A,--addโ The operation is to add a new annotation. Attempting to add an annotation with a tag that already applies to that package is an error, but this will not causepkg annotateto exit before attempting to apply the annotation to all remaining matched packages. It keeps going, bestie ๐-C,--case-sensitiveโ Make the standard or the regular expression (-x) matching against pkg-name case sensitive. Capital letters matter now, fr fr.-D,--deleteโ The operation is to delete an annotation. Only the tag needs to be specified. Attempting to delete an annotation which does not exist on a package is an error, but this will not preventpkg annotatecarrying on to delete the annotation from all matched packages. Itโs giving โwe moveโ energy ๐ญ-g,--globโ Treat pkg-name as a shell glob pattern. Globby and proud ๐-i,--case-insensitiveโ Make the standard or the regular expression (-x) matching against pkg-name case insensitive. This is the default, unless modified by settingCASE_SENSITIVE_MATCHtotrueinpkg.conf. Chill matching is the baseline โจ-M,--modifyโ The operation is to modify a previously existing annotation. Functionally, this behaves similarly to-Aexcept that it will succeed irrespective of whether the tag already applies to all the matched packages. Very forgiving, very demure ๐-q,--quietโ Operate quietly: do not output anything other than confirmatory questions. Silent mode, but make it polite ๐คซ-S,--showโ Display the annotation identified bytagfor each matched package. Letโs see whatโs tea โ-x,--regexโ Treat pkg-name as a regular expression according to the "modern" or "extended" syntax ofre_format(7). Regex girlies rise ๐ฅ-y,--yesโ Assume "yes" as the answer to all questions. No thoughts, just yes ๐ซถ
๐ฑ ENVIRONMENT ๐ฑ
The following environment variables affect the execution of pkg annotate. See pkg.conf(5) for further description.
PKG_DBDIRDEFAULT_ALWAYS_YESASSUME_ALWAYS_YESCASE_SENSITIVE_MATCH
๐ FILES ๐
See pkg.conf(5).
๐ EXAMPLES ๐
Annotate the nginx package with the tag foo and a value of bar:
# pkg annotate -A nginx foo bar
View all annotations on a package:
$ pkg info nginx
Remove the annotation:
# pkg annotate -D nginx foo
Show all packages with the foo annotation:
# pkg annotate --all --show foo
๐ฎ SEE ALSO ๐ฎ
pkg_create(3), pkg_printf(3), pkg_repo_create(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg-triggers(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-audit(8), pkg-autoremove(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-help(8), pkg-info(8), pkg-install(8), pkg-key(8), pkg-lock(8), pkg-plugins(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-repositories(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-unregister(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)
๐ Thatโs the whole page, bestie. Source/version: Debian. Date: May 17, 2014. Periodt. ๐
๐ฆ where this page comes from
- nixos 26.05: pkg 2.7.5
- nixpkgs unstable: pkg 2.7.5
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms