PKG-ANNOTATE(8)

๐Ÿ“ฆ version 2.7.5, in nixos 26.05, nixpkgs unstable

๐ŸŒธ 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 cause pkg annotate to 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 prevent pkg annotate carrying 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 setting CASE_SENSITIVE_MATCH to true in pkg.conf. Chill matching is the baseline โœจ
  • -M, --modify โ€” The operation is to modify a previously existing annotation. Functionally, this behaves similarly to -A except 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 by tag for 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 of re_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_DBDIR
  • DEFAULT_ALWAYS_YES
  • ASSUME_ALWAYS_YES
  • CASE_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