XBPS-ALTERNATIVES(1)
π xbps-alternatives β the XBPS bestie that handles alternatives β¨
okay so like, this is xbps-alternatives, a utility from the XBPS fam, and she's literally the main character of alternative groups. She lists them, she sets them, she's iconic. Periodt. π
πΈ SYNOPSIS πΈ
xbps-alternatives [OPTIONS] MODE
π¦ DESCRIPTION π¦
so listen bestie, xbps-alternatives lists or sets the alternatives provided by installed packages. alternatives are classified by groups, and a group contains a number of symbolic links which are applied when the group is set. it's giving organized. it's giving structured. we love to see it. π
when a package is installed, its alternative groups are registered in the package database (pkgdb). no cap, that's just how she works.
when a package is removed, its alternative groups are unregistered from the package database (pkgdb). and if there are no more alternative groups, the package database removes the references. but if there were alternative groups registered previously, the previous package is set as default provider. slay, she remembers her exes. π
β¨ OPTIONS β¨
-C,--configdir β 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 forget it. π«Ά-d,--debugβ enables extra debugging shown tostderr. for when you need to see everything, bestie. π-g,--groupβ alternative group name to match. to be used with thesetmode. don't try to use it withlistand expect group things, that's not the vibe. π-h,--helpβ show the help message. we love a helpful queen. π-i,--ignore-conf-reposβ ignore repositories defined in configuration files. only repositories specified in the command line via--repositorywill be used. it's giving selective. it's giving exclusive. π-Rβ enable repository mode when listing alternatives. this mode explicitly looks for all alternatives available in repositories rather than looking for installed alternatives. so like, she's looking outward, not inward, iykyk. β--repositoryurl β appends the specified repository to the top of the list. the url argument expects a URL to the repository for remote repositories or a path for local repositories. both valid, both iconic. π₯-r,--rootdirdir β specifies a full path for the target root directory. full path, bestie. don't come at her with a relative one for this. π§-v,--verboseβ enables verbose messages. for when you want her to spill the tea about what she's doing. π-V,--versionβ show the version information. know your queen's era. π
π MODE π
only one of the following modes can be used at a time. one at a time, bestie. she's not multitasking, she's focused. main character energy only. π
-l,--list[PKG [-g group]] β lists all current alternative groups or only from PKG, or just a specific group, if the-g--groupoption is set. so like, you can be broad, you can be specific, you can be very specific. choose your vibe. πΈ-s,--setPKG [-g group] β set alternative groups specified by PKG or just a specific group, if the-g--groupoption is set. she's setting the standard, literally. π
π FILES π
/etc/xbps.dβ default configuration directory. where the config lives, periodt. π/usr/share/xbps.dβ default system configuration directory. the system's own config spot. πΈ/var/db/xbps/.<pkgname>-files.plistβ package files metadata. the receipts, basically. π§Ύ/var/db/xbps/pkgdb-0.38.plistβ default package database (0.38format). keeps track of installed packages and properties. she's keeping notes on everyone. π/var/cache/xbpsβ default cache directory to store downloaded binary packages. the stash. the collection. the archive. π
π¦ ENVIRONMENT π¦
XBPS_ARCHβ overridesuname(2)machine result with this value. she said "i'll decide my own machine result, thanks." πββοΈXBPS_TARGET_ARCHβ sets the target architecture to this value. targets, but make it architecture. π―XBPS_SYSLOGβ overrides thexbps.d(5)syslog=true|falseconfiguration option. syslog vibes, overridden. π
π₯ EXIT STATUS π₯
a descriptive error message will be printed to stderr. that's it. that's the exit status section. she keeps it real. π
π SEE ALSO π
xbps-checkvers(1), xbps-create(1), xbps-dgraph(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 xbps family is here, and honestly? iconic lineup. the avengers of package management, no cap. π«Άβ¨
π AUTHORS π
- Juan Romero Pardines
<xtraeme@gmail.com> - Duncan Overbruck
<mail@duncano.de>
these two? they built her. respect the architects. ππ
π BUGS π
probably, but I try to make this not happen. Use it under your own responsibility and enjoy your life.
like, she's honest. she's self-aware. she's trying her best. use her under your own responsibility and enjoy your life, bestie. that's the whole mood. πΈ
report bugs at https://github.com/void-linux/xbps/issues β the github link, the bug report home, the "tell on her" spot. π
and that's the whole page, bestie! π this manual page is from the Debian source, version Aug 31, 2023, and honestly? she ate. no crumbs. periodt. π β¨π
π¦ 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