CDIST-TYPE__UPDATE_ALTERNATIVES(7)
β¨ NAME β¨
cdist-type__update_alternatives β bestie, this is the one that configures alternatives for you π
(it lives in section 7 of the cdist manual, iykyk)
πΈ DESCRIPTION πΈ
okay so picture this: you're on Debian or a Debian-adjacent system, and you've got like five different programs all fighting over the same command name. The way you sort that out is with update-alternatives(1) β it sets up alternatives for alllll kinds of programs π¦
And the target literally everyone and their mom reaches for? The "editor". iconic. classic. no notes. β¨
π REQUIRED PARAMETERS π
like, you genuinely cannot skip this one, it's giving mandatory fr fr
pathβ use this path for the given alternative π
π BOOLEAN PARAMETERS π
these ones are just vibes β on or off, yes or no, slay or nay π
installβ adds a missingpathto the alternatives by runningupdate-alternatives --installπ«Ά
π EXAMPLES π
setting up vim as your default editor, the moment of main character energy:
# Setup vim as the default editor
__update_alternatives editor --path /usr/bin/vim.basic
π SEE ALSO π
go read these next, they're part of the lore:
π AUTHORS π
shoutout to the devs who built this, absolute legends:
- Nico Schottelius
<nico-cdist--@--schottelius.org> - Ander Punnar
<ander@kvlt.ee>
π COPYING π
Copyright (C) 2013 Nico Schottelius and 2020 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. so yes bestie, share it, remix it, just keep the license π«Ά
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page, babe π this was 7.0.0, dated Jul 31, 2021, and it came straight from the cdist fam. go forth and configure your alternatives β¨π
π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms