XBPS-DGRAPH(1)
π
xbps-dgraph β the dot(1) graph maker from XBPS (yes, that's xbps-dgraph(1) from the General Commands Manual, hi bestie π«Ά)
okay so picture this: you want a picture of a package's dependency drama β¨. That's literally what this icon does. The xbps-dgraph utility generates a dot(1) graph of a specific package stored in target root directory or in registered repositories and prints the result to stdout. Yep β straight to stdout, no files, no fuss, main character energy only π
.
The argument PKG is a package expression, which is explained in the PACKAGE EXPRESSION section. (Spoiler: it's right below, keep reading πΈ.)
π PACKAGE EXPRESSION π
A package expression is a form to match a pattern; currently xbps supports 3 ways to specify them:
- by package name, i.e:
βfooβ. - by exact package name and version, i.e:
βfoo-1.0_1β. - by specifying a package name and version separated by any of the following version comparators:
<less than>greater than<=less or equal than>=greater or equal than
Example: βfoo>=2.0β.
The first repository matching the package expression wins. periodt. π
β¨ OPTIONS β¨
-C,--config_dir_ β Specifies a path to the XBPS configuration directory. If the first character is not'/'then it's a relative path of _rootdir_. lowkey important detail, don't skip it π¦-c,--graph-config_file_ β Specifies a path to the graph configuration file, to modify the settings of the generated graphs. this is where you make it pretty π¨-d,--debugβ Enables extra debugging shown tostderr. the group chat logs of debugging, honestly π-h,--helpβ Show the help message. we love a supportive icon π«Ά-M,--memory-syncβ For remote repositories, the data is fetched and stored in memory for the current operation. This ignores the existing on-disk repository archives in _rootdir_. no cap, fully in-memory brain π§ β¨-R,--repositoryβ Enable repository mode. This mode explicitly looks in repositories, rather than looking in the target root directory. choose your location bestie π-r,--rootdir_dir_ β Specifies a full path for the target root directory. full path only, not vibes-based π―-V,--versionβ Show the version information. π
π MODE π
Only one of the following modes can be used at a time. By default and unless the -R option is specified, the target PKG will be queried in the root directory, otherwise it will be queried in registered repositories. pick a lane, bestie π¦
-g,--gen-configβ Generates a graph configuration file in the current working directory. a little starter kit for your graph era π-f,--fulldeptreeβ Generates a full dependency graph of the target package. the whole tree, the entire family tree, no skipping ππ³-m,--metadataβ Generates a metadata graph of the target package. the lore, the details, the metadata β¨
π¦ ENVIRONMENT π¦
XBPS_ARCHβ Overridesuname(2)machine result with this value. Useful to install packages with a fake architecture. fake it till you make it, iykyk πXBPS_TARGET_ARCHβ Sets the target architecture to this value. This variable differs fromXBPS_ARCHin that it allows you to install packages partially, because configuration phase is skipped (the target binaries might not be compatible with the native architecture). β οΈ note: it's partial, and those binaries might not vibe with your native architecture, fr fr.
πΈ FILES πΈ
/etc/xbps.dβ Default configuration directory./usr/share/xbps.dβ Default system configuration directory./var/db/xbps/.<pkgname>-files.plistβ Package files metadata./var/db/xbps/pkgdb-0.38.plistβ Default package database (0.38format). Keeps track of installed packages and properties./var/cache/xbpsβ Default cache directory to store downloaded binary packages.
β EXIT STATUS β
A descriptive error message will be printed to stderr. that's the whole section bestie, no exit codes spelled out, just vibe check failure energy π
π SEE ALSO π
xbps-alternatives(1), xbps-checkvers(1), xbps-create(1), xbps-digest(1), xbps-fbulk(1), xbps-fetch(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1), xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1), xbps-uunshare(1), xbps.d(5)
the whole friend group, honestly π«π
π§ AUTHORS π§
Juan Romero Pardines <xtraeme@gmail.com>
π BUGS π
Probably, but I try to make this not happen. Use it under your own responsibility and enjoy your life. (iconic closing line, no notes πβ¨)
Report bugs at https://github.com/void-linux/xbps/issues β go snitch, kindly ππ«
β οΈ real talk: this tool prints to stdout and that's it, and only one MODE at a time, bestie. don't come for me if you mash two together π
β¨ that's the whole page, ty for coming to my ted talk β¨ β this lil' beauty is from the Debian build, dated Feb 9, 2023, and it's the XBPS-DGRAPH(1) page from the General Commands Manual. mwah ππ
π¦ where this page comes from
- alpine 3.24: xbps-doc 0.60.6-r1 Β· BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: xbps 0.60.7
- nixpkgs unstable: xbps 0.60.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms